-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[ISSUE#12988] Develop naming admin api #13019
[ISSUE#12988] Develop naming admin api #13019
Conversation
Thanks for your this PR. 🙏 感谢您提交的PR。 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在老API上加一下Compatibility注释
可以参考Core和Console的API
@GetMapping() | ||
@Secured(resource = UtilsAndCommons.CLIENT_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) | ||
public Result<ObjectNode> getClientDetail(@RequestParam("clientId") String clientId) throws NacosApiException { | ||
checkClientId(clientId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否把实际执行的逻辑抽象到一个Service里, 替换掉现在V2的Controller, 然后V3的Controller也是用抽象的Service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面的接口也相同的逻辑。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
*/ | ||
@PutMapping | ||
@Secured(resource = UtilsAndCommons.CLUSTER_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.WRITE, apiType = ApiType.ADMIN_API) | ||
public Result<String> update(HttpServletRequest request) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能否走一下NacosForm的改造
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0x5be0a207aa4829a9e925117a041287872cba44c56a60297ebb1270361be9cfe2این هش را نگاه کنید من تماس گرفتم ولی چیزی دریافت نکردم
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
دوست عزیز از ای پی قدیم وجدید من استفاده شده وتمام مخازن مرا خالی کردند
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@GetMapping("/list") | ||
@TpsControl(pointName = "NamingServiceListQuery", name = "HttpNamingServiceListQuery") | ||
@Secured(resource = UtilsAndCommons.SERVICE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) | ||
public Result<ServiceNameView> list( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否也能做一下NacosForm改造?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
دوست عزیز تا الان من فقط خرید کردم و به گیرنده انتقال دادم وچیزی دریافت نکردم
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
👌 |
Ok
Em ter., 7 de jan. de 2025, 05:59, Matthew ***@***.***>
escreveu:
… 在老API上加一下Compatibility注释
可以参考Core和Console的API
👌
—
Reply to this email directly, view it on GitHub
<#13019 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4MT7RAEILEXQZ7HCOV53FD2JOJPTAVCNFSM6AAAAABUW4EHTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZUG4ZTMNZUGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@Majidrazaee If you want to discuss or comment this PR. Please use English. |
done |
Dear friend, it's been almost 9 months now that I just bought and transferred and until now I haven't received anything. If I called or claimed too much because the person I was depositing to asked me to do this and this caused the operator to malfunction. slow |
Mr. Alibaba, what is your problem with me, why don't you allow me to comment, why don't you allow my property to be returned to Kiev |
My old and new IP have been used and all my assets have been lost. Why is no one helping me? |
If I made a large amount for a call or a claim, because the person I was depositing asked me to do so |
If you has problem, please submit issue with English, This PR is others code commit, your comment is not relative with this PR. |
@Majidrazaee You comment is not relative about nacos, I will delete all your comments. Please don't submit comment and issue again, thanks. |
2.Refactor to Extract ClientService.
9662cf3
to
45a3759
Compare
Maybe you should submit support tickets to github. |
naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java
Show resolved
Hide resolved
naming/src/main/java/com/alibaba/nacos/naming/controllers/OperatorController.java
Outdated
Show resolved
Hide resolved
naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java
Outdated
Show resolved
Hide resolved
*/ | ||
@PutMapping | ||
@Secured(resource = UtilsAndCommons.CLUSTER_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.WRITE, apiType = ApiType.ADMIN_API) | ||
public Result<String> update(HttpServletRequest request) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
دوست عزیز از ای پی قدیم وجدید من استفاده شده وتمام مخازن مرا خالی کردند
@GetMapping("/list") | ||
@TpsControl(pointName = "NamingServiceListQuery", name = "HttpNamingServiceListQuery") | ||
@Secured(resource = UtilsAndCommons.SERVICE_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ, apiType = ApiType.ADMIN_API) | ||
public Result<ServiceNameView> list( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
دوست عزیز تا الان من فقط خرید کردم و به گیرنده انتقال دادم وچیزی دریافت نکردم
@@ -63,7 +64,7 @@ public class CatalogController { | |||
*/ | |||
@Secured(action = ActionTypes.READ) | |||
@GetMapping("/service") | |||
@Compatibility(apiType = ApiType.CONSOLE_API, alternatives = "GET ${contextPath:nacos}/v3/console/ns/service") | |||
@Compatibility(apiType = ApiType.ADMIN_API, alternatives = "GET ${contextPath:nacos}/v3/admin/ns/service") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
左边的API确实是console的API, 已经上Compatibility且不是ADMIN的API不需要再添加了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -112,7 +113,7 @@ public InstanceController() { | |||
@PostMapping | |||
@TpsControl(pointName = "NamingInstanceRegister", name = "HttpNamingInstanceRegister") | |||
@Secured(action = ActionTypes.WRITE) | |||
@Compatibility(apiType = ApiType.OPEN_API) | |||
@Compatibility(apiType = ApiType.ADMIN_API, alternatives = "POST ${contextPath:nacos}/v3/admin/ns/instance") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个应该是OPEN_API吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
closes #12988
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.