Using Hasura Data APIs

3.2 Hasura Data API + Postman Collection | Hasura Internship

Green Strips
Aug 25, 2017 · 1 min read

Now that we’d set up our app prototype and finished data modelling the next big task at hand was the backend integration.

In computer programming, an APPLICATION PROGRAMMING INTERFACE (API) is a set of subroutine definitions, protocols and tools for building application software. In simpler words, API is a set of clearly defined methods of communication between various software components.

API is testing can be hard but it doesn’t have to be. Postman comes to our rescue and makes it easy to write tests, make sure they are working, set up the testing environment and then eventually hook it all up to build our system.

This document by Hasura provides a very good insight as to how we can use postman to implement our data API’s.

Here is an example where we implemented the select query using Data API.

This query selects all columns from the Advertiser table.

The data modelling for our app can be found here.

)
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