dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
http://docs.dotkernel.org/api-documentation/
MIT License
26 stars 4 forks source link

how to generate a token ? #276

Closed arhimede closed 2 weeks ago

arhimede commented 3 weeks ago

If I want to generate a token to do various API calls, how should I do it ?

The below page is not useful https://github.com/dotkernel/api/blob/5.0/documentation/command/token-generate.md

alexmerlin commented 2 weeks ago

This command is NOT for generating access tokens. It can be extended to that as well, but in its current form, it cannot only generate tokens for the error-reporting endpoint (used by JS frontends to report various errors to the API).


If you want to generate an access token, you can do that using Postman (or curl if you don't have Postman installed).

arhimede commented 2 weeks ago

How ? Lets xomplete the documentation about that ...

alexmerlin commented 2 weeks ago

We have an article about working with Postman. https://www.dotkernel.com/how-to/postman-for-documentation-in-dotkernel-api-3/

Once the documentation files described in the article are imported, you can generate/refresh access tokens and send requests to the endpoints.

I'll create a new page in the API documentation on the entire flow.

alexmerlin commented 2 weeks ago

Documentation for token authentication is here: https://docs.dotkernel.org/api-documentation/v4/tutorials/token-authentication/