We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ kong version
Kong 3.6.1
Calling PUT /upstreams/{upstreamName}/targets/{target} returns 404 even though documentation says it is an upsert operation.
PUT /upstreams/{upstreamName}/targets/{target}
Calling the PUT endpoint should create the target if it does not exist.
PUT
(Creating a target with a POST request and then updating it with PUT works.)
POST
No response
The text was updated successfully, but these errors were encountered:
Looks to be same as update: https://github.com/Kong/kong/blob/master/kong/api/routes/upstreams.lua#L216-L221
Not sure, but this may be because of historical purposes. But doc seems be then wrong. One of them is wrong.
Sorry, something went wrong.
I discussed this with @locao, and it looks like it is a bug (in code).
@bungle , do we have a ticket to track it?
--> KAG-4475
bungle
No branches or pull requests
Is there an existing issue for this?
Kong version (
$ kong version
)Kong 3.6.1
Current Behavior
Calling
PUT /upstreams/{upstreamName}/targets/{target}
returns 404 even though documentation says it is an upsert operation.Expected Behavior
Calling the
PUT
endpoint should create the target if it does not exist.(Creating a target with a
POST
request and then updating it withPUT
works.)Steps To Reproduce
PUT
API to upsert a target to it.Anything else?
No response
The text was updated successfully, but these errors were encountered: