REST API guided project

API Playground

Step 8 / 8 25-40 min JSON API SQLite to MySQL path

API Playground

Use the playground to test the request and response shapes from this guide without modifying a database.

What is safe here

The playground is a documentation tool. GET requests read seeded demo data. POST, PATCH, and DELETE return realistic success or validation responses, but they do not create, update, or delete database rows.

What to try

  • Fetch all animals.
  • Filter animals by species or status.
  • Fetch one animal by id.
  • Send an invalid create request and inspect the 422 response.
  • Send a valid create request and inspect the fake 201 response.
  • Patch or delete an animal and check the meta.persisted value.

How this helps

The code examples in the route, controller, validation, and error chapters are easier to understand when you can immediately see the JSON result. Use the playground as a Postman-like companion while reading the project.

Request

Response

Status: waiting
{
  "message": "Choose an endpoint and send a request."
}

Project files

Download completed API

This download does not include the CorianderPHP framework. Start from a CorianderPHP project, then copy these app-owned files into it.

Download completed API