task.yaml
394 字节
version: v1
kind: HttpApi
metadata:
service: task
path: /tasks
endpoints:
- method: createTask
route:
post: /
- method: updateTask
route:
put: /{taskId}
- method: getTask
route:
get: /{taskId}
- method: removeTask
route:
delete: /{taskId}
- method: listTask
route:
get: /
params:
- name: offset
- name: limit