Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 882 Bytes

api.md

File metadata and controls

30 lines (17 loc) · 882 Bytes

REST API

/api/sites

A POST to /api/sites can be used to add a new site associated with a key.

A GET to /api/sites can be used to get a list of all the sites belonging to a key.

/api/config

A GET to /api/config will return the list of available themes and the currently selected theme.

A PUT to /api/config can be used to change the site's theme.

NB: All requests require a NIP-98 authorization header to be present!

Blossom API

Servus implements the Blossom API and therefore acts as your personal Blossom server.

  • PUT /upload
  • GET /list/<pubkey>
  • DELETE /<sha256>

NIP-96 API

Servus implements NIP-96 file storage.

  • POST /api/files
  • DELETE /api/files/<sha256>