-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
kind/featuretype/featuretype/feature
Description
Try to use #6983 rule to crreate service api.
create service
- METHOD: POST
- URI: /v2/ns/service/${serviceName}
- PARAM: namespaceId,groupName,ephemeral,protectThreshold,selector,metadata.
P.S Why not put namespaceId and groupName into uri?
the reason is that in api v1, the two params is optional, and will use default value to fill them if users do not provide. These params will become Required params if fill in uri.
delete service
- METHOD: DELETE
- URI: /v2/ns/service/${serviceName}
- PARAM: namespaceId,groupName
update service
- METHOD: PUT
- URI: /v2/ns/service/${serviceName}
- PARAM: namespaceId,groupName,ephemeral,protectThreshold,selector,metadata.
query service
- METHOD: GET
- URI: /v2/ns/service/${serviceName}
- PARAM: namespaceId,groupName
list serivce
- METHOD: GET
- URI: /v2/ns/service/list
- PARAM: namespaceId,groupName,pageNo,pageSize,selector
Metadata
Metadata
Assignees
Labels
kind/featuretype/featuretype/feature