Test your API using Postman Test Script
Prologue : Having a different set of web developers in Flipbox sometimes resulting in different style and structure of the final API.
Problem : Multiple style and structure of the API will resulting in an inefficient way of API understanding, and creating reusable parser will be difficult. A standard for API is needed. Currently, we use this standard in Flipbox : https://docs.google.com/presentation/d/1IxZhNFyooPesbwCMTnwG0qcdT56g48lb1oYAebM3fOA/edit#slide=id.g846780a0c_0_78
However, having a standard is not enough. A simple routine-check is needed so that developer / QA doesn't have to remember all the standards by heart.
Solution : Postman have a feature called Postman Test that enables us to create a simple test case for the API using JavaScript as the main language. With that knowledge in mind, I create a simple test case according to Flipbox's current standard. Every API endpoint that passed this simple test is guaranteed to have the same general structure and decent performance.
Feel free to check and use the test here https://gist.github.com/sakadigital/5598630f6d9e439dcc6f5287a43b2da2
Cheers!