fusionauth-typescript-client icon indicating copy to clipboard operation
fusionauth-typescript-client copied to clipboard

Client and API Documentation don't align - searchEntityTypes

Open ansonallard opened this issue 3 years ago • 2 comments

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.

ansonallard avatar Aug 29 '22 15:08 ansonallard

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.

mooreds avatar Aug 29 '22 16:08 mooreds

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.

ansonallard avatar Aug 29 '22 20:08 ansonallard