Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest api v2 in core module #6970

Closed
kevinw66 opened this issue Sep 23, 2021 · 1 comment · Fixed by #7085
Closed

Rest api v2 in core module #6970

kevinw66 opened this issue Sep 23, 2021 · 1 comment · Fixed by #7085
Labels
kind/discussion Category issues related to discussion

Comments

@kevinw66
Copy link
Contributor

kevinw66 commented Sep 23, 2021

Core module for rest api definition. Refer to #6983

NacosClusterController

前缀 /v1/core/cluster 改为 /v2/core/cluster

接口

​ self       get /self 改为 get /nodes/self

 listNodes    入参由 keyword 改为 address,url 不动,为/nodes

​ listSimpleNodes 整合到listNodes接口中,入参为state,该接口特定值为up。整合后返回值为Member集合

​ getHealth    使用 self 接口。使用后返回值为Member

​ report      post /report 改为 put /nodes,接口名改为updateNodes,入参改为List

​ switchLookup  post /switch/lookup 改为 put /lookup,参数类型改为requestBody,接口名改为updateLookup

​ leave      post /service/leave 改为 delete /nodes,接口名改为deleteNodes


CoreOpsController

前缀 /v1/core/ops 改为 /v2/core/ops

接口

​ raftOps     不动

​ idInfo      get /idInfo 改为 get /ids,接口名改为listIds

​ setLogLevel   put /log 不动,入参类型改为requestBody,接口名改为updateLog

@realJackSun realJackSun added the kind/discussion Category issues related to discussion label Sep 23, 2021
@Paramjeet663
Copy link

hii

KomachiSion pushed a commit that referenced this issue Nov 10, 2021
* Add rest api v2 in core module

* merge cluster listNodes methods

* ut

* add beta annotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/discussion Category issues related to discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants