2 releases

0.1.1-alpha.3 Dec 20, 2023
0.1.1-alpha.2 Nov 29, 2023

#2298 in Web programming

Download history 12/week @ 2024-09-23 15/week @ 2024-09-30

56 downloads per month
Used in swarmd

Unlicense

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

To get access to the crate's generated documentation, use:

cargo doc --open

Author

anthony@brevz.io

Dependencies

~5–17MB
~236K SLoC