Hasura Auth API + Postman collection
In this blog i am going to describe about how to create authorization to the table using postman.
In the previous blog i discussed about the accessing of data of the tables using postman and one can go through my previous blog :
In this phase,everyone has to learn to use HasuraData API’s for making CRUD (Create, Read, Update and Delete) queries…medium.com
Now here are some of the sample auth API queries made using Postman, referring from Auth documentation and users, roles and sessions (Register, Login, and Logout are POST requests where as User Info is a GET request):
- Signup request:
This is a POST request made to URL endpoint :
After making signup request the new user is now given a session token,and he/she is considered as registered and now he/she can sign in as a user.
2) login request:
This is also a POST request made to the URL endpoint :
After login one can access the data from the table,and make data API requests.every time when a user logs he/she is given with a session token to access the API.if he /she try’s to access with the invalid token then access is denied.
3)User Info Request :
This is a GET request made to the URL endpoint : http://auth.c100.hasura.me/user/account/info
This used for displaying the user information from the table.
4)Log Out Request :
This is a POST request (but formerly was a GET request in older version of hasura local development) which is made to URL endpoint :
This documentation is broadly divided into 2 parts:hasura.io
we can check whether the user is logout or not by checking in the user management.