|
| 1 | +# Rust API client for petstore-reqwest-model-name-prefix |
| 2 | + |
| 3 | +This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. |
| 4 | + |
| 5 | + |
| 6 | +## Overview |
| 7 | + |
| 8 | +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. |
| 9 | + |
| 10 | +- API version: 1.0.0 |
| 11 | +- Package version: 1.0.0 |
| 12 | +- Generator version: 7.10.0-SNAPSHOT |
| 13 | +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +Put the package under your project folder in a directory named `petstore-reqwest-model-name-prefix` and add the following to `Cargo.toml` under `[dependencies]`: |
| 18 | + |
| 19 | +``` |
| 20 | +petstore-reqwest-model-name-prefix = { path = "./petstore-reqwest-model-name-prefix" } |
| 21 | +``` |
| 22 | + |
| 23 | +## Documentation for API Endpoints |
| 24 | + |
| 25 | +All URIs are relative to *http://petstore.swagger.io/v2* |
| 26 | + |
| 27 | +Class | Method | HTTP request | Description |
| 28 | +------------ | ------------- | ------------- | ------------- |
| 29 | +*FakeApi* | [**test_nullable_required_param**](docs/FakeApi.md#test_nullable_required_param) | **GET** /fake/user/{username} | To test nullable required parameters |
| 30 | +*PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store |
| 31 | +*PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet |
| 32 | +*PetApi* | [**find_pets_by_status**](docs/PetApi.md#find_pets_by_status) | **GET** /pet/findByStatus | Finds Pets by status |
| 33 | +*PetApi* | [**find_pets_by_tags**](docs/PetApi.md#find_pets_by_tags) | **GET** /pet/findByTags | Finds Pets by tags |
| 34 | +*PetApi* | [**get_pet_by_id**](docs/PetApi.md#get_pet_by_id) | **GET** /pet/{petId} | Find pet by ID |
| 35 | +*PetApi* | [**update_pet**](docs/PetApi.md#update_pet) | **PUT** /pet | Update an existing pet |
| 36 | +*PetApi* | [**update_pet_with_form**](docs/PetApi.md#update_pet_with_form) | **POST** /pet/{petId} | Updates a pet in the store with form data |
| 37 | +*PetApi* | [**upload_file**](docs/PetApi.md#upload_file) | **POST** /pet/{petId}/uploadImage | uploads an image |
| 38 | +*StoreApi* | [**delete_order**](docs/StoreApi.md#delete_order) | **DELETE** /store/order/{orderId} | Delete purchase order by ID |
| 39 | +*StoreApi* | [**get_inventory**](docs/StoreApi.md#get_inventory) | **GET** /store/inventory | Returns pet inventories by status |
| 40 | +*StoreApi* | [**get_order_by_id**](docs/StoreApi.md#get_order_by_id) | **GET** /store/order/{orderId} | Find purchase order by ID |
| 41 | +*StoreApi* | [**place_order**](docs/StoreApi.md#place_order) | **POST** /store/order | Place an order for a pet |
| 42 | +*TestingApi* | [**tests_file_response_get**](docs/TestingApi.md#tests_file_response_get) | **GET** /tests/fileResponse | Returns an image file |
| 43 | +*TestingApi* | [**tests_type_testing_get**](docs/TestingApi.md#tests_type_testing_get) | **GET** /tests/typeTesting | Route to test the TypeTesting schema |
| 44 | +*UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /user | Create user |
| 45 | +*UserApi* | [**create_users_with_array_input**](docs/UserApi.md#create_users_with_array_input) | **POST** /user/createWithArray | Creates list of users with given input array |
| 46 | +*UserApi* | [**create_users_with_list_input**](docs/UserApi.md#create_users_with_list_input) | **POST** /user/createWithList | Creates list of users with given input array |
| 47 | +*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /user/{username} | Delete user |
| 48 | +*UserApi* | [**get_user_by_name**](docs/UserApi.md#get_user_by_name) | **GET** /user/{username} | Get user by user name |
| 49 | +*UserApi* | [**login_user**](docs/UserApi.md#login_user) | **GET** /user/login | Logs user into the system |
| 50 | +*UserApi* | [**logout_user**](docs/UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session |
| 51 | +*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{username} | Updated user |
| 52 | + |
| 53 | + |
| 54 | +## Documentation For Models |
| 55 | + |
| 56 | + - [FooActionContainer](docs/FooActionContainer.md) |
| 57 | + - [FooApiResponse](docs/FooApiResponse.md) |
| 58 | + - [FooArrayItemRefTest](docs/FooArrayItemRefTest.md) |
| 59 | + - [FooBaz](docs/FooBaz.md) |
| 60 | + - [FooCategory](docs/FooCategory.md) |
| 61 | + - [FooEnumArrayTesting](docs/FooEnumArrayTesting.md) |
| 62 | + - [FooNullableArray](docs/FooNullableArray.md) |
| 63 | + - [FooNumericEnumTesting](docs/FooNumericEnumTesting.md) |
| 64 | + - [FooOptionalTesting](docs/FooOptionalTesting.md) |
| 65 | + - [FooOrder](docs/FooOrder.md) |
| 66 | + - [FooPet](docs/FooPet.md) |
| 67 | + - [FooPropertyTest](docs/FooPropertyTest.md) |
| 68 | + - [FooRef](docs/FooRef.md) |
| 69 | + - [FooReturn](docs/FooReturn.md) |
| 70 | + - [FooTag](docs/FooTag.md) |
| 71 | + - [FooTypeTesting](docs/FooTypeTesting.md) |
| 72 | + - [FooUniqueItemArrayTesting](docs/FooUniqueItemArrayTesting.md) |
| 73 | + - [FooUser](docs/FooUser.md) |
| 74 | + |
| 75 | + |
| 76 | +To get access to the crate's generated documentation, use: |
| 77 | + |
| 78 | +``` |
| 79 | +cargo doc --open |
| 80 | +``` |
| 81 | + |
| 82 | +## Author |
| 83 | + |
| 84 | + |
| 85 | + |
0 commit comments