Swagger, but better
Papi does the job OpenAPI does: it describes an HTTP API. It adds the things OpenAPI never had. A review workflow. A diff that understands schemas. Comments that survive the next version. A mock server that answers real requests.
A schema is one line
Objects, arrays, unions, optional attributes and references to named entities, in a grammar you can read out loud. The whole schema is one string.
{id:number,customer:Customer,tags?:[string]}
type: object
required: [id, customer]
properties:
id:
type: number
customer:
$ref: '#/components/schemas/Customer'
tags:
type: array
items:
type: string
A spec change is a pull request
Nothing lands because someone committed it. A change opens as a candidate against the current version, gets read, argued over and approved, and only then merges into a version of its own.
-
1
Open
A candidate carries one draft version, edited in place. There is no per-edit history to wade through.
-
2
Review
Threads sit beside the thing they are about. A reordered object never asks to be reviewed.
-
3
Approve
One thumbs up per reader, and never the author's own.
-
4
Merge
An admin promotes the draft, and it becomes the published version everyone reads.
A change, read by the tool
One candidate against the version it came from, laid out the way Papi lays it out.
status went from a bare
string to a named entity, legacyRef
is gone, and an optional attribute arrived. The blank rows are the diff holding
both columns in step, so a line and the line it replaced sit level with each
other.
A thread anchored to a line
The thread is fixed to that line of that response, by what it is rather than by a row id. Cutting a new version copies every record and gives it fresh ids; the thread is still on the line it was about.
The spec answers
The declared responses are a running mock server. A published version serves under its own URL and so does an open candidate, so this proposal is callable while it is still being argued about.
Free to start
- 2 projects, the sample included
- 10 endpoints and 10 entities per version
- 30 candidates per project
- 10 members, counting the invited
It never expires. Need more? Write to me