All API endpoints conform to the pattern [PREFIX]LETTER[/ZETTEL-ID], where:
is the URL prefix (default: “/”), configured via the url-prefix startup configuration,
is a single letter that specifies the resource type,
is an optional 14 digits string that uniquely identify a zettel.
The following letters are currently in use:
Letter | Without zettel identifier | With zettel identifier | Mnemonic |
---|---|---|---|
a | POST: client authentication | Authenticate | |
PUT: renew access token | |||
x | GET: retrieve administrative data | Execute | |
POST: execute command | |||
z | GET: list zettel/query zettel | GET: retrieve zettel | Zettel |
POST: create new zettel | PUT: update zettel | ||
DELETE: delete zettel |
The full URL will contain either the “http” oder “https” scheme, a host name, and an optional port number.
The API examples will assume the “http” schema, the local host “127.0.0.1”, the default port “23123”, and the default empty PREFIX “/”. Therefore, all URLs in the API documentation will begin with “http://127.0.0.1:23123/”.