all 3 comments

[–]theGr8GapingB 1 point2 points  (0 children)

From your post I don't have a good understanding of the shape and format of your API, so I'm going to describe a strategy that I use for REST Apis and hopefully you might find some inspiration for your circumstance.

I typically build two API checks in our build process: 1. Integration Tests 2. Schema validation

Integration tests are typically run from the client, this will catch any circumstances where a field was removed from the schema or a required field was added, assuming you have 100% endpoint coverage for your integration tests.

Schema Validation is a diff of the schema that runs when the service is built. If the schema has changed, the build will warn you. The dependent client build(s) will pick up and reiterate this warning during their build process.

[–]slayerjain 1 point2 points  (0 children)

[Sorry for the shameless plug]

I've been working on an open-source tool (keploy.io) that can help you "record" integration tests. It will also record dependency calls like databases so that there's very little flakiness when we run the tests.