Sherlock Holmes API

Cases, suspects and clues from a fictional Victorian detective agency. Practice CRUD, Bearer auth, nested resources, pagination and optimistic concurrency.

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

cases

five cases, two still open

suspects

alibis included, guilt undisclosed

clues

physical, document, and testimony

The Sherlock Holmes API is a case file: investigations with suspects and clues, and cases that move from open to solved. It is the catalog's PATCH endpoint — partial updates rather than whole-object PUTs — which is where most clients quietly send the wrong thing and never find out.

What you can practise here

Example request and response

GET https://funapi.dev/api/holmes/v1/cases — List all cases. No token, no signup:

curl -i https://funapi.dev/api/holmes/v1/cases

Response: 200 OK

{
  "total": 5,
  "data": [
    {
      "id": 1,
      "title": "The Vanishing Violin",
      "status": "solved",
      "year": 1889
    },
    {
      "id": 2,
      "title": "The Crimson Cipher",
      "status": "solved",
      "year": 1891
    },
    {
      "id": 3,
      "title": "The Baker Street Burglary",
      "status": "open",
      "year": 1894
    },
    {
      "id": 4,
      "title": "The Midnight Telegram",
      "status": "solved",
      "year": 1896
    },
    {
      "id": 5,
      "title": "The Fogbound Heir",
      "status": "open",
      "year": 1899
    }
  ]
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Last updated