ContractPolice

More often that I liked, I was surprised by a REST API that I could no longer use because of breaking changes. In order to be alerted before deploying, I created ContractPolice.


Open Source
JavaScript
OpenAPI

Many applications depend on a web service to deliver data and fetch their configuration using HTTP.
In most cases, this is done using a REST API.
Clients that make HTTP requests in the REST fashion are dependent on a (sometimes) strict contract.
Especially after deployment, breaking an API contract can be fatal to business operations.

A basic tool can be useful in verifying the correctness of the web service your application uses.
When running ContractPolice on a regular basis, you can make sure to work with valid APIs.

Details


Source code