API Lab · class day 46
Parsing a JSON response
A nested JSON answer with lists inside objects: the right size for JsonPath and loops.
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/books | Nested JSON: library, books, authors, tags, publisher. Query: tag, inStock | 200 OK |
| GET | /api/v1/books/{id} | One book | 200 OK, 400 Bad request, 404 Not found |