Authentication
Authentication related to basic endpoints
This authentication is only related to the /quotes
endpoints.
Some endpoints may require you to be authenticated. This is done by sending an Authorization
header with your access token along with your request.
Login
In order to receive an access token you will need to login. You do not need to register an account, you can simply login with any username.
You can login by sending a POST
request to the /auth/login
endpoint with your username in the request body.
In return you will receive a response with the following body:
You can now use this access token as the Bearer token in the Authorization
header for all endpoints that require authentication.
Example of sending Authorization header.
The following example shows how to send an Authorization
header with your request.