Information
- OpenAPI version:
3.1.0
The JSON API a script or agent drives Mudda through.
Every resource has a JSON representation on the same URL as its page: GET /boards/123
returns a page, GET /boards/123.json returns the board. URLs carry no account prefix; the
account is whoever the credential belongs to.
Requests and responses are JSON. A write accepts its attributes flat ({"title":"…"}) or
wrapped in the resource’s name ({"card":{"title":"…"}}); attributes an endpoint doesn’t
take are ignored. A create answers 201 with the record and a Location; a delete answers
204. Timestamps are UTC, but “today” (overdue, due=soon, creation) is the owner’s day.
JSON is opt-in: an endpoint not listed here answers a JSON request with 406 before the
action runs. Every failure comes back in one envelope, in English, carrying the request id.
This file is the published contract consumed by the mudda-docs site, and
test/integration/published_contract_test.rb keeps it in step with the routes and checks
real responses against its schemas.
Authorization: Bearer <token> (or Token <token>; the scheme is case-sensitive). A
token does what its scopes grant, decided by the request’s verb: read for GET,
write for POST/PUT/PATCH, delete for DELETE or a write that removes nested
records ("_destroy": true). Tokens get read write unless delete is asked for. A
request outside a token’s scopes is a 403 before the action runs. Each operation’s
description states the scope it needs (also given as x-scopes). Each token may make
600 requests a minute; past that, a 429 with Retry-After: 60.
Security scheme type: http