इसे छोड़कर कंटेंट पर जाएं
GitHub

REST API

Unaudited

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

Capsule’s server surface is REST over HTTP, described by one OpenAPI 3.2 document capsule-server emits from its own route types. Every page in this section is generated from that document and verified against the code in CI; why the surface is shaped this way is API Surfaces.

  • Read Conventions first. It is the contract every endpoint shares: protocol negotiation and the operations exempt from it, the bearer credential, and how a rejection is coded and mapped to a status.
  • The server holds no keys. Every write is sealed on the client, and the sync feed returns opaque envelopes, so no endpoint takes a plaintext asset. That is why there is no try-it panel: a request a reader could send by hand would teach that the API accepts plaintext. The command line (CLI) performs the sealing instead.
  • Each endpoint page opens with its operations and schemas, then sets each operation beside an example request and example responses. The document itself is /openapi.json.
  • Do not hand-write a client. capsule-sdk is generated from the same document; its request and response types are the only ones guaranteed to track it. Server code follows API Practices.