50 lines
1.3 KiB
Markdown
50 lines
1.3 KiB
Markdown
|
# Rust API client for openapi
|
||
|
|
||
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||
|
|
||
|
|
||
|
## Overview
|
||
|
|
||
|
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
|
||
|
|
||
|
- API version: 1.0.0
|
||
|
- Package version: 1.0.0
|
||
|
- Generator version: 7.4.0
|
||
|
- 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://petstore.swagger.io/v1*
|
||
|
|
||
|
Class | Method | HTTP request | Description
|
||
|
------------ | ------------- | ------------- | -------------
|
||
|
*PetsApi* | [**create_pets**](docs/PetsApi.md#create_pets) | **POST** /pets | Create a pet
|
||
|
*PetsApi* | [**list_pets**](docs/PetsApi.md#list_pets) | **GET** /pets | List all pets
|
||
|
*PetsApi* | [**show_pet_by_id**](docs/PetsApi.md#show_pet_by_id) | **GET** /pets/{petId} | Info for a specific pet
|
||
|
|
||
|
|
||
|
## Documentation For Models
|
||
|
|
||
|
- [Error](docs/Error.md)
|
||
|
- [Pet](docs/Pet.md)
|
||
|
|
||
|
|
||
|
To get access to the crate's generated documentation, use:
|
||
|
|
||
|
```
|
||
|
cargo doc --open
|
||
|
```
|
||
|
|
||
|
## Author
|
||
|
|
||
|
|
||
|
|