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

Henry's law constant for CO 2 ​ in water is 1.67×10 ∘ Pa at 298 K . Calculate the quantity of CO 2 ​ in 500 mL , of soda water when packed under 2.5 atm CO 2 ​ pressure at 298 K .

  Explanation To calculate the amount of CO 2 ​ dissolved, we use Henry's Law: P = k H ​ × x _ C O 2 ​ where:\ P = partial pressure of...