product.yaml
424 字节
version: v1
kind: HttpApi
metadata:
service: product
path: /products
endpoints:
- method: createProduct
route:
post: /
- method: updateProduct
route:
put: /{productId}
- method: getProduct
route:
get: /{productId}
- method: removeProduct
route:
delete: /{productId}
- method: listProduct
route:
get: /
params:
- name: offset
- name: limit