Hasura Data API & Postman Collection

Udit N. Sia
Jul 22, 2017 · 2 min read

I have used Hasura API to get data for our Database and to test if my API is working properly or not I have used Postman.Before diving into further details I would prefer to shed some light on Postman.

Postman

Postman is basically a powerful tool for developers and testers working with API and facilitates API testing and request management quite seamlessly.

As can be seen above,my API service is taking json context and also throwing it back.An authorization stamp has also been attached along with bearer authentication token.

Again I am retrieving the contact details from contactdetails table (Discussed in my previous blog) like email,phoneno,userid for testing data API calls.

As you can see here i am creating a database view named postedcase_city as many users in my database have same cities. Using a database view I am making sure to fetch city uniquely.Like that i have created 3 more database views postedcase_category,advocate_city and advocate_category.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade