{% extends 'Layouts/Doc/default.html.twig' %} {% block title %}Documentation{% endblock %} {% block headerPageTitle %} {{ 'app.documentation.page.title.authorization'|trans |upper}} {% endblock %} {% block body %}
In Popina Order's API all routes are protected by JWT authentication. If you would like to test these endpoints in our Swagger UI docs, you need to retrieve a JWT token (duration = {{tokenDuration}} min) first. You could do that by using an endpoint with your credentials for API as webshop, manager or show owner:
In the response, you will get a token that has to be passed in each request header. In the Swagger UI, you can set the authentication token for each request.
Notice the Authorize button and unlocked padlock near the available URLs:
Click the Authorize button and put the authentication token (remember about the Bearer prefix):
After clicking Authorize, you should see locked padlock near URLs and the proper header should be added to each API call:
A vital component in our authentication system, enabling secure and seamless user access management.
Parameters
Response
Each endpoint you call must contain the mandatory headers.
The mandatory headers are the folowing:
Popina Order provides seamless and secure authentication through Google accounts. With our Google authentication integration, users can easily sign up and sign in to your application using their Google credentials. This enhances the user experience by eliminating the need to create and remember additional login details.
Rate limiter is a method of controlling traffic flow to a service or server by restricting the number of requests that can be made within a certain time frame. It is an essential technique for preventing resource abuse, ensuring fair use of services and protecting against DDoS attacks.
The current Rate limit for Popina Order is: {{rateLimiterLimit}} / {{rateLimiterInterval}}