6 stable releases
new 1.0.9 | Feb 19, 2025 |
---|---|
1.0.8 | Feb 11, 2025 |
1.0.5 | Feb 3, 2025 |
#573 in Web programming
683 downloads per month
180KB
3.5K
SLoC
Rust API client for api.tembo.io
Platform API for Tembo Cloud. API documentation is available here.
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: v1.0.0
- Package version: v1.0.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named tembo_api_client
and add the following to Cargo.toml
under [dependencies]
:
tembo_api_client = { path = "./tembo_api_client" }
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AppApi | get_all_apps | GET /api/v1/apps | Attributes for all apps |
AppApi | get_app | GET /api/v1/apps/{type} | Get the attributes of a single App |
InstanceApi | create_instance | POST /api/v1/orgs/{org_id}/instances | Create a new Tembo instance |
InstanceApi | delete_instance | DELETE /api/v1/orgs/{org_id}/instances/{instance_id} | Delete an existing Tembo instance |
InstanceApi | get_all | GET /api/v1/orgs/{org_id}/instances | Get all Tembo instances in an organization |
InstanceApi | get_instance | GET /api/v1/orgs/{org_id}/instances/{instance_id} | Get an existing Tembo instance |
InstanceApi | get_schema | GET /api/v1/orgs/instances/schema | Get the json-schema for an instance |
InstanceApi | instance_event | POST /api/v1/orgs/{org_id}/instances/{instance_id} | Lifecycle events for a Tembo instance |
InstanceApi | patch_instance | PATCH /api/v1/orgs/{org_id}/instances/{instance_id} | Update attributes on an existing Tembo instance |
InstanceApi | put_instance | PUT /api/v1/orgs/{org_id}/instances/{instance_id} | Replace all attributes of an existing Tembo instance |
InstanceApi | restore_instance | POST /api/v1/orgs/{org_id}/restore | Restore a Tembo instance |
StackApi | get_all_entities | GET /api/v1/stacks | Attributes for all stacks |
StackApi | get_entity | GET /api/v1/stacks/{type} | Get the attributes of a single stack |
Documentation For Models
- AppConfig
- AppService
- AppType
- AppTypeOneOf
- AppTypeOneOf1
- AppTypeOneOf2
- AppTypeOneOf3
- AppTypeOneOf4
- AppTypeOneOf5
- ConnectionInfo
- ConnectionPooler
- Cpu
- CreateInstance
- EnvVar
- EnvVarRef
- Environment
- ErrorResponseSchema
- Extension
- ExtensionInstallLocation
- ExtensionInstallLocationStatus
- ExtensionStatus
- HeaderConfig
- Infrastructure
- Ingress
- IngressType
- Instance
- InstanceEvent
- IntOrString
- IntOrStringOneOf
- IntOrStringOneOf1
- Memory
- Middleware
- MiddlewareOneOf
- MiddlewareOneOf1
- MiddlewareOneOf2
- PatchInstance
- PgBouncer
- PgConfig
- PoolerPgbouncerPoolMode
- PoolerTemplateSpecContainersResources
- PoolerTemplateSpecContainersResourcesClaims
- Probe
- Probes
- ReplacePathRegexConfig
- ReplacePathRegexConfigType
- Resource
- ResourceRequirements
- Restore
- RestoreInstance
- Routing
- StackType
- State
- Storage
- StorageConfig
- StripPrefixConfig
- TrunkInstall
- TrunkInstallStatus
- UpdateInstance
- VolumeMount
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~5–17MB
~238K SLoC