API contract
A simple library/command-line tool to verify API responses.
Usage
Sample configuration
Sample schema
Documentation
- Information on schema format could be found here: https://github.com/webpack-contrib/schema-utils
- Configuration file is an array of tested endpoints (objects) with following parameters:
method
- request method e.g. get, post, headendpoint
- URL to requestschema
- path to the schema filedata
- (optional) data object for post, patch and put requestconfig
- (optional) additional request configuration object
Licence
MIT