Expand description
HTTP client for the Citra Space API.
All request/response types and the Client are generated at build time
from the OpenAPI specification vendored at openapi/citra.json. To refresh
the vendored spec, run scripts/update-openapi.sh.
Use CitraClient::new to construct a Client pre-configured with the
appropriate base URL (dev or prod) and a bearer-token Authorization
header on every outgoing request.
use lemonaid::CitraClient;
let client = CitraClient::new(&std::env::var("CITRA_PAT")?, /* dev */ true);
// Call generated methods on `client` — see the [`Client`] docs for the
// full list of operations.Endpoints not covered by the OpenAPI specification (for example direct S3 uploads of capture artifacts) are implemented in handwritten modules alongside the generated code.
Modules§
- prelude
- Items consumers will typically use such as the Client.
- types
- Types used as operation parameters and responses.
Structs§
- Byte
Stream - Untyped byte stream used for both success and error responses.
- Citra
Client - Factory for building a generated
Clientpointed at the dev or prod Citra Space API with a personal access token attached as a bearer header. - Client
- Client for FastAPI
- Response
Value - Typed value returned by generated client methods.
Enums§
- Error
- Error produced by generated client methods.
Traits§
- Client
Info - Interface for which an implementation is generated for all clients.