Example 02 - JSON Schema Validation

Number of APIs: 1

JSON (JavaScript Object Notation) is a lightweight format for storing and transporting data. It is often used for the data sent from a server to a web client.

According to json-schema.org:

JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes your existing data format with clear, human- and machine-readable documentation for complete structural validation, useful for automated testing and validating client-submitted data.

You can use a JSON schema to construct a model of your API response and validate the response of an API call, ensuring that the values in API responses are valid in terms of type and format.

This collection is a simple example of using a JSON schema to validate API responses. Creating a Qodex monitor using this collection enables you to continuously validate the response data.

  1. Response JSON schema valiation GET {{baseUrl}}/products?query={{Product_Name}}