device.yaml
414 字节
version: v1
kind: HttpApi
metadata:
service: device
path: /devices
endpoints:
- method: createDevice
route:
post: /
- method: updateDevice
route:
put: /{deviceId}
- method: getDevice
route:
get: /{deviceId}
- method: removeDevice
route:
delete: /{deviceId}
- method: listDevice
route:
get: /
params:
- name: offset
- name: limit