Using Hasura Data APIs
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.
