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

Client and API Documentation don't align - searchEntityTypes #78

Open
ansonallard opened this issue Aug 29, 2022 · 2 comments
Open

Client and API Documentation don't align - searchEntityTypes #78

ansonallard opened this issue Aug 29, 2022 · 2 comments

Comments

@ansonallard
Copy link

When I went to set the correct permissions on my API key to call the searchEntityTypes function, I visited the FusionAuth Entity Type documentation and found that the API call was a GET for searching entity types. I then set my api key to allow GET on /api/entity/type/search. However, I still received a 401, and after reading the client code, it makes a POST request instead, which doesn't align with the documentation. I'd like to understand which is correct - a GET or POST - and note that the discrepancy between the client and the documentation should be updated.

@mooreds
Copy link
Contributor

mooreds commented Aug 29, 2022

Thanks @ansonallard

I looked at this API and both GETs and POSTs should work.

Does that help?

I'll take a todo to update it.

@ansonallard
Copy link
Author

Hey @mooreds - I was able to get the POST to work as well. Thanks for queuing an update. 😄 I just wanted to let your team know that the documentation specified one verb and the client library used another, so I just wanted to make sure I understood what was the correct/intended verb for the use case.

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

No branches or pull requests

2 participants