Dino Park API

A fictional dinosaur park: creatures, enclosure capacity, and a breach simulator. Practice CRUD, Bearer auth, nested resources, capacity conflicts (409), pagination and optimistic concurrency.

Base URL: https://funapi.dev/api/dinopark/v1 · 9 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

dinosaurs

seven residents, one very hungry rex

enclosures

capacity matters

incidents

breach reports, growing list

The Dino Park API runs a park: dinosaurs, the enclosures holding them, and an incident log for when those two facts stop agreeing. Enclosures have capacity and species compatibility rules, so writes are validated against the current state rather than accepted blindly — which makes it a good target for testing business-rule failures rather than schema failures.

What you can practise here

Example request and response

GET https://funapi.dev/api/dinopark/v1/dinosaurs — List dinosaurs (paginated, filter by diet). No token, no signup:

curl -i https://funapi.dev/api/dinopark/v1/dinosaurs

Response: 200 OK

{
  "page": 1,
  "pageSize": 4,
  "total": 7,
  "totalPages": 2,
  "data": [
    {
      "id": 1,
      "name": "Rexy",
      "species": "Tyrannosaurus rex",
      "diet": "carnivore",
      "enclosureId": 1,
      "dangerLevel": "extreme",
      "_v": 1
    },
    {
      "id": 2,
      "name": "Blue",
      "species": "Velociraptor",
      "diet": "carnivore",
      "enclosureId": 1,
      "dangerLevel": "high",
      "_v": 1
    },
    {
      "id": 3,
      "name": "Big Eatie",
      "species": "Brachiosaurus",
      "diet": "herbivore",
      "enclosureId": 2,
      "dangerLevel": "low",
      "_v": 1
    },
    {
      "id": 4,
      "name": "Bumpy",
      "species": "Ankylosaurus",
      "diet": "herbivore",
      "enclosureId": 2,
      "dangerLevel": "low",
      "_v": 1
    }
  ]
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Last updated