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

Incorrect instruction for creating Key Set #7838

Closed
2 tasks done
imurata opened this issue Sep 4, 2024 · 0 comments · Fixed by #7842
Closed
2 tasks done

Incorrect instruction for creating Key Set #7838

imurata opened this issue Sep 4, 2024 · 0 comments · Fixed by #7842
Assignees

Comments

@imurata
Copy link
Contributor

imurata commented Sep 4, 2024

Where is the problem?

https://docs.konghq.com/gateway/3.7.x/reference/key-management/

What happened?

I followed the instructions and ran the following command for keyset.

curl -i -X PUT http://localhost:8001/key-sets  \
   --data name=my-set

The result was here.

HTTP/1.1 405 Not Allowed
...
{"message":"Method not allowed"}

What did you expect to happen?

Expected behavior is the follows.

{"created_at":1725417244,"updated_at":1725417244,"name":"my-set","tags":null,"id":"d0129531-a2aa-4000-8d8d-f3d415b2d65d"}

We need to specify POST instead of PUT.

Code of Conduct and Community Expectations

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations
@lena-larionova lena-larionova self-assigned this Sep 4, 2024
lena-larionova added a commit that referenced this issue Sep 4, 2024
lena-larionova added a commit that referenced this issue Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants