japi-utils
v1.0.9
Published
Package for checking the JSON response structure of an API and validating the API response
Downloads
16
Readme
Why Japi?
- You can see the JSON response structure
- You can validate the JSON response with the one that you expect
- You can see if the JSON response has an error property
- Export file with JSON response structures for a given array of APIs
How to use Japi?
- responseStructure(url) returns the structure of the JSON response
- validate(url, structureExpected) returns if the json response received matches the one expected
- hasError(json) returns if the the json has an error property
- exportAllJSON(urls) creates a file with the structure of JSON responses for each api