Posts

Showing posts with the label postman

Hasura Auth API + Postman collection

Image
In my previous post, I had mentioned that Hasura platform provides Data API as well as Auth API. I used Data API to insert and retrieve data into tables of my database schema. Check out my previous post about  Hasura Data API Auth service Hasura Auth provides services for user authentication & authorization, user management, session management and table permissions. In a typical app, we require to Register a new user. Login an existing user and maintain his/her session. Logout the user and terminate his/her session. Reset password for a user. Table for user information is already there in Auth service. Roles There are three roles in the auth service admin user anonymous A user of user table can have more then one role, and each role have its permission and access restrictions. The  admin   role can do CRUD queries to all the tables. Permissions for other roles is need to be defined in each table. When we register a new user, it assign...

Hasura Data API + Postman Collection

Image
After doing data modelling for my app, I moved to next task in the third week. The task was to learn how to make CRUD queries across all your tables using Hasura Data APIs. My previous blog post is about data modelling for my app, check it out to understand database schema for my app. What is an API Application program interface ( API ) is a set of routines, protocols, and tools for building software applications. An  API  specifies how software components should interact and  APIs  are used when programming graphical user interface (GUI) components. Hasura provides Data API as well as Auth API on their platform. Before integration of the app with database, first I need to check the APIs and learn how that works. To know more about Hasura Data APIs, refer to this  link . Data service on hasura platform runs as any other service like my app. We need to contact to this data service in order to exchange data to/from the database tables. I...