2 releases
0.1.1-alpha.3 | Dec 20, 2023 |
---|---|
0.1.1-alpha.2 | Nov 29, 2023 |
#2302 in Web programming
27 downloads per month
Used in swarmd
42KB
788 lines
Rust API client for openapi
Introduction
blblbllb
For more information, please visit https://swarmd.io/
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:
- Package version:
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named openapi
and add the following to Cargo.toml
under [dependencies]
:
openapi = { path = "./openapi" }
Documentation for API Endpoints
All URIs are relative to http://127.0.0.1:8087
Class | Method | HTTP request | Description |
---|---|---|---|
InternalApi | health_get | GET /health | Health |
ProjectApi | organization_id_project_create_post | POST /{organization_id}/project/create | Create Project |
ProjectApi | organization_id_project_get | GET /{organization_id}/project/ | List projects |
ProjectApi | organization_id_project_project_id_publish_put | PUT /{organization_id}/project/{project_id}/publish | Publish a worker |
ProjectApi | organization_id_project_slug_project_slug_get | GET /{organization_id}/project/slug/{project_slug} | Get Project |
UserApi | user_organisations_get | GET /user/organisations | List projects |
WorkerApi | organization_id_project_project_id_worker_upload_post | POST /{organization_id}/project/{project_id}/worker/upload | Upload a new worker for the project |
Documentation For Models
- AppError
- CreateProjectParams
- CreateProjectPayload
- CreateProjectResponse
- GetBySlugParams
- GetBySlugResponse
- ListOrganisationResponse
- ListProjectResponse
- ListProjectsParams
- OrgRole
- PartialOrganisation
- Project
- PublishWorkerParams
- PublishWorkerPayload
- PublishWorkerResponse
- UploadWorkerParams
- UploadWorkerResponse
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~4–16MB
~237K SLoC