作者
陈志颖
docs:添加订单api
|
|
version: v1
|
|
|
kind: HttpApi
|
|
|
metadata:
|
|
|
service: order
|
|
|
path: /orders
|
|
|
endpoints:
|
|
|
- method: createOrder
|
|
|
route:
|
|
|
post: /
|
|
|
- method: updateOrder
|
|
|
route:
|
|
|
put: /{orderId}
|
|
|
- method: getOrder
|
|
|
route:
|
|
|
get: /{orderId}
|
|
|
- method: removeOrder
|
|
|
route:
|
|
|
delete: /{orderId}
|
|
|
- method: listOrder
|
|
|
route:
|
|
|
get: /
|
|
|
params:
|
|
|
- name: offset
|
|
|
- name: limit |
...
|
...
|
|