role.yaml
382 字节
version: v1
kind: HttpApi
metadata:
service: role
path: /roles
endpoints:
- method: createRole
route:
post: /
- method: updateRole
route:
put: /{Id}
- method: getRole
route:
get: /{Id}
- method: removeRole
route:
delete: /{Id}
- method: listRole
route:
get: /
params:
- name: offset
- name: limit