JSON-schema for REST API tests

I wrote a blog post about using JSON-schema to build tests for REST API endpoints that output json at ticketea's engineering blog, so instead of just re-posting I'll just link it: https://engineering.ticketea.com/using-json-schema-for-rest-api-endpoint-tests/ (download article in PDF here)

It's a small yet interesting example, and will probably serve me as a quickstart for any future django project as it contains useful bits like:

  • classless django views
  • an example of pytest-django and two useful features it provides (the settings and client fixtures). I'm loving the concept of not needing to write scaffolding code
  • a small usage example of json-schema :)

Comments? Share via Twitter Share via Linkedin Share via Mastodon