API Lab · class day 48
Schemas, serialization and deserialization
A JSON schema and an XML schema (XSD) to validate answers against, and objects that turn into JSON and back.
Send X-Sandbox: your-name with every request to get your own data. Addresses start with /api/v1 after this site's address.
Addresses for today
| Method | Address | What it does | Status codes |
|---|---|---|---|
| GET | /api/v1/schemas/user.json | JSON schema of one user | 200 OK |
| GET | /api/v1/schemas/users-list.json | JSON schema of a page of users | 200 OK |
| GET | /api/v1/schemas/books.xsd | XML schema (XSD) of /books.xml | 200 OK |