-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
request help: apisix 1.4 can not patch upstream nodes configure #1823
Comments
please, can you tell me What tools do you use for debugging. thanks. |
@nic-chen do you have time to look at this issue? |
I am a log debugger, mainly use |
OK |
The PATCH method has modified the calling format, in your example, it should be like this: curl -i -X PATCH http://127.0.0.1:9080/apisix/admin/routes/1 -d '{"upstream":{"nodes":{"192.168.3.39:8080":10,"192.168.3.39:8081":10,"192.168.3.39:8082":10,"192.168.3.39:8083":10,"192.168.3.39:8084":10}}}' the detail see: |
I think @DHB-liuhong is the right way. |
I can accept both styles.
|
Why not use standard RESTful API? I prefer this style:
|
I think resource name should mapped to a URL path, and resource is
contained in the HTTP request body.
for example: PATCH 127.0.0.1/apisix/admin/routes/1/uri -d {'index.html'}
Thanks,
Ming Wen
Twitter: _WenMing
琚致远 <notifications@github.com> 于2020年7月12日周日 下午11:35写道:
… Why not use standard RESTful API? I prefer this style:
PATCH http://127.0.0.1:9080/apisix/admin/routes/1 -d {a: b}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1823 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJZBK3I32UMMWYKATSG7VTR3HJ3JANCNFSM4OWFETUQ>
.
|
I personally think this new type is not friendly to use. why should we set the attribute value to null to remove. |
@moonming I think you provide a wrong example, the correct one should be like this:
|
agree, we need to easier way for this case |
Welcome to discuss on this mailing list. |
Issue description
apisix 1.4 can not patch upstream nodes configure
Environment
apisix version
): 1.4The text was updated successfully, but these errors were encountered: