|
| 1 | +# org.openapitools.client - Kotlin client library for OpenAPI Petstore |
| 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 | +## Overview |
| 6 | +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client. |
| 7 | + |
| 8 | +- API version: 1.0.0 |
| 9 | +- Package version: |
| 10 | +- Generator version: 7.11.0-SNAPSHOT |
| 11 | +- Build package: org.openapitools.codegen.languages.KotlinClientCodegen |
| 12 | + |
| 13 | +## Requires |
| 14 | + |
| 15 | +* Kotlin 1.7.21 |
| 16 | +* Gradle 7.5 |
| 17 | + |
| 18 | +## Build |
| 19 | + |
| 20 | +First, create the gradle wrapper script: |
| 21 | + |
| 22 | +``` |
| 23 | +gradle wrapper |
| 24 | +``` |
| 25 | + |
| 26 | +Then, run: |
| 27 | + |
| 28 | +``` |
| 29 | +./gradlew check assemble |
| 30 | +``` |
| 31 | + |
| 32 | +This runs all tests and packages the library. |
| 33 | + |
| 34 | +## Features/Implementation Notes |
| 35 | + |
| 36 | +* Supports JSON inputs/outputs, File inputs, and Form inputs. |
| 37 | +* Supports collection formats for query parameters: csv, tsv, ssv, pipes. |
| 38 | +* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions. |
| 39 | +* Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets. |
| 40 | + |
| 41 | +<a id="documentation-for-api-endpoints"></a> |
| 42 | +## Documentation for API Endpoints |
| 43 | + |
| 44 | +All URIs are relative to *http://petstore.swagger.io/v2* |
| 45 | + |
| 46 | +| Class | Method | HTTP request | Description | |
| 47 | +| ------------ | ------------- | ------------- | ------------- | |
| 48 | +| *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store | |
| 49 | +| *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet | |
| 50 | +| *PetApi* | [**findPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status | |
| 51 | +| *PetApi* | [**findPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags | |
| 52 | +| *PetApi* | [**getPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID | |
| 53 | +| *PetApi* | [**updatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet | |
| 54 | +| *PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data | |
| 55 | +| *PetApi* | [**uploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image | |
| 56 | +| *StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID | |
| 57 | +| *StoreApi* | [**getInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status | |
| 58 | +| *StoreApi* | [**getOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID | |
| 59 | +| *StoreApi* | [**placeOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet | |
| 60 | +| *UserApi* | [**createUser**](docs/UserApi.md#createuser) | **POST** /user | Create user | |
| 61 | +| *UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array | |
| 62 | +| *UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array | |
| 63 | +| *UserApi* | [**deleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user | |
| 64 | +| *UserApi* | [**getUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name | |
| 65 | +| *UserApi* | [**loginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system | |
| 66 | +| *UserApi* | [**logoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session | |
| 67 | +| *UserApi* | [**updateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user | |
| 68 | + |
| 69 | + |
| 70 | +<a id="documentation-for-models"></a> |
| 71 | +## Documentation for Models |
| 72 | + |
| 73 | + - [org.openapitools.client.models.Category](docs/Category.md) |
| 74 | + - [org.openapitools.client.models.ModelApiResponse](docs/ModelApiResponse.md) |
| 75 | + - [org.openapitools.client.models.Order](docs/Order.md) |
| 76 | + - [org.openapitools.client.models.Pet](docs/Pet.md) |
| 77 | + - [org.openapitools.client.models.Tag](docs/Tag.md) |
| 78 | + - [org.openapitools.client.models.User](docs/User.md) |
| 79 | + |
| 80 | + |
| 81 | +<a id="documentation-for-authorization"></a> |
| 82 | +## Documentation for Authorization |
| 83 | + |
| 84 | + |
| 85 | +Authentication schemes defined for the API: |
| 86 | +<a id="petstore_auth"></a> |
| 87 | +### petstore_auth |
| 88 | + |
| 89 | +- **Type**: OAuth |
| 90 | +- **Flow**: implicit |
| 91 | +- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog |
| 92 | +- **Scopes**: |
| 93 | + - write:pets: modify pets in your account |
| 94 | + - read:pets: read your pets |
| 95 | + |
| 96 | +<a id="api_key"></a> |
| 97 | +### api_key |
| 98 | + |
| 99 | +- **Type**: API key |
| 100 | +- **API key parameter name**: api_key |
| 101 | +- **Location**: HTTP header |
| 102 | + |
0 commit comments