Skip to content

Add service rest api v2 for naming module. #7210

@KomachiSion

Description

@KomachiSion

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions