Friday, June 9, 2017

3.3) Hasura Auth API + Postman collection

Hello all !

My app
My app is powered by https://hasura.io/

Sample Hasura Auth API queries:

I.) SIGNUP
Method :POST
URL :  https://auth.veejay84.hasura-app.io/signup
Header : Content-type , application/json

 Body of Hasura signup auth API
{
  "username":"ashutosh",
  "password":"1234abcd"
}

II.)  SIGNIN
Method : POST
URL : https://auth.veejay84.hasura-app.io/login
Header : Content-type , application/json

 Body of Hasura sign-in  auth API
{
  "username":"ashutosh",
  "password":"1234abcd"
}

III.)  USER ACCOUNT INFO

Method :GET
URL: https://auth.veejay84.hasura-app.io/user/account/info
Header : Autherization , Bearer

Empty body

IV.) LOGOUT
 
 Method : GET
URL : https://auth.veejay84.hasura-app.io/user/logout
 Header : Autherization , Bearer

 Empty body


Following are some screen shots of various Auth APIs in Postman

==============================SIGNUP AUTH API=======================================

SIGNUP REQUEST HEADERS

                                                 SIGN UP REQUEST BODY IN JSON FORMAT

                                           SIGNUP RESPONSE BODY IN JSON

                                       THE SIGNUP API SETS COOKIE - ITS DETAILS

                                                 SIGNUP API RESPONSE HEADERS

==========================LOGOUT API===========================

                                LOGOUT REQUEST HEADER----HAS NO REQUEST BODY

                                                      LOGOUT RESPONSE BODY

                                            LOGOUT RESPONSE HEADERS


=================LOGIN API===========================================

                                                   LOGIN REQUEST HEADER

                                                     LOGIN REQUEST BODY

                                               LOGIN RESPONSE BODY

                                       LOGIN API SETS COOKIE--ITS DETAILS

                                            LOGIN RESPONSE HEADERS

===================USER ACCOUNT INFO AUTH API=====================

                                           REQUEST HEADER ---------NO BODY


                                                   RESPONSE BODY IN JSON
                                             RESPONSE HEADER


Please live comments












No comments:

Post a Comment

How can I run a C++ program directly from Windows?

How-can-I-run-a-C-program-directly-from-Windows