June 20, 2017
The WordPress REST API is built upon the JSON Schema standard which defines the request and response format of REST routes. Understanding this format is integral to building upon the REST API. JSON Schema is quick to get up-and-running for simple endpoints and can be extended upon to provide more advanced functionality for a complex application.
In this talk you’ll be presented with concrete examples of how JSON Schema can be used to describe simple and complex endpoints alike. One of JSON Schema’s strengths is its portability. We’ll explore how it can be used to dynamically seed and even generate UIs. As well as how you can use it to drive front-end validation, reducing duplication of validation logic throughout your application.