Protocol Lab API

Protocol mechanics the themed APIs do not cover: 202 Accepted with job polling, 301/302 redirects (and a chain), 503 with Retry-After, a guaranteed 504, Accept-based content negotiation with 406, HATEOAS links, RFC 6902 JSON Patch and 410 Gone.

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

jobs

202 Accepted + poll to completion

redirects

301, 302 and a chain to follow

outages

503 & 504 on demand

documents

HATEOAS, JSON Patch, 406 & 410

The Protocol Lab is the catalog's HTTP semantics bench, and covers what most mock APIs never do: 202-accepted async jobs you poll to completion, 301 and 302 redirects, 503 and 504 outages, JSON Patch, and content negotiation that answers 406 when it cannot satisfy your Accept header. If a client library is going to surprise you, it will surprise you here.

What you can practise here

Example request and response

GET https://funapi.dev/api/protocol/v1/moved/old-dashboard — Permanently moved — 301. No token, no signup:

curl -i https://funapi.dev/api/protocol/v1/moved/old-dashboard

Response: 301 Moved Permanently

{
  "error": "Moved Permanently",
  "message": "The dashboard lives at /moved/new-dashboard now. Note that curl needs -L to follow redirects."
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Last updated