Published in


Testing Your Python API App with JSON Schema

When writing JSON APIs you always want to make sure your endpoints deliver the data they are supposed to deliver. A good way to ensure your code acts the way it should is writing some tests. A really nice way to test JSON APIs is verifying the request’s JSON response against a JSON Schema.

If you are not familiar with JSON Schema yet, you can find the specification and more detailed information on the official web site and lots of nice explanatory examples here.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Götze

Authoring code. Drawing stuff. Comics addict and fan of bad jokes. Creator of &