|
| 1 | +# scala-sttp-petstore |
| 2 | + |
| 3 | +OpenAPI Petstore |
| 4 | +- API version: 1.0.0 |
| 5 | + - Generator version: 7.13.0-SNAPSHOT |
| 6 | + |
| 7 | +This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. |
| 8 | + |
| 9 | + |
| 10 | +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* |
| 11 | + |
| 12 | +## Requirements |
| 13 | + |
| 14 | +Building the API client library requires: |
| 15 | +1. Java 1.7+ |
| 16 | +2. Maven/Gradle/SBT |
| 17 | + |
| 18 | +## Installation |
| 19 | + |
| 20 | +To install the API client library to your local Maven repository, simply execute: |
| 21 | + |
| 22 | +```shell |
| 23 | +mvn clean install |
| 24 | +``` |
| 25 | + |
| 26 | +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: |
| 27 | + |
| 28 | +```shell |
| 29 | +mvn clean deploy |
| 30 | +``` |
| 31 | + |
| 32 | +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. |
| 33 | + |
| 34 | +### Maven users |
| 35 | + |
| 36 | +Add this dependency to your project's POM: |
| 37 | + |
| 38 | +```xml |
| 39 | +<dependency> |
| 40 | + <groupId>org.openapitools</groupId> |
| 41 | + <artifactId>scala-sttp-petstore</artifactId> |
| 42 | + <version>1.0.0</version> |
| 43 | + <scope>compile</scope> |
| 44 | +</dependency> |
| 45 | +``` |
| 46 | + |
| 47 | +### Gradle users |
| 48 | + |
| 49 | +Add this dependency to your project's build file: |
| 50 | + |
| 51 | +```groovy |
| 52 | +compile "org.openapitools:scala-sttp-petstore:1.0.0" |
| 53 | +``` |
| 54 | + |
| 55 | +### SBT users |
| 56 | + |
| 57 | +```scala |
| 58 | +libraryDependencies += "org.openapitools" % "scala-sttp-petstore" % "1.0.0" |
| 59 | +``` |
| 60 | + |
| 61 | +## Getting Started |
| 62 | + |
| 63 | +## Documentation for API Endpoints |
| 64 | + |
| 65 | +All URIs are relative to *http://petstore.swagger.io/v2* |
| 66 | + |
| 67 | +Class | Method | HTTP request | Description |
| 68 | +------------ | ------------- | ------------- | ------------- |
| 69 | +*FakeApi* | **getParameterNameMapping** | **GET** /fake/parameter-name-mapping | parameter name mapping test |
| 70 | +*PetApi* | **addPet** | **POST** /pet | Add a new pet to the store |
| 71 | +*PetApi* | **deletePet** | **DELETE** /pet/${petId} | Deletes a pet |
| 72 | +*PetApi* | **findPetsByStatus** | **GET** /pet/findByStatus | Finds Pets by status |
| 73 | +*PetApi* | **findPetsByTags** | **GET** /pet/findByTags | Finds Pets by tags |
| 74 | +*PetApi* | **getPetById** | **GET** /pet/${petId} | Find pet by ID |
| 75 | +*PetApi* | **updatePet** | **PUT** /pet | Update an existing pet |
| 76 | +*PetApi* | **updatePetWithForm** | **POST** /pet/${petId} | Updates a pet in the store with form data |
| 77 | +*PetApi* | **uploadFile** | **POST** /pet/${petId}/uploadImage | uploads an image |
| 78 | +*StoreApi* | **deleteOrder** | **DELETE** /store/order/${orderId} | Delete purchase order by ID |
| 79 | +*StoreApi* | **getInventory** | **GET** /store/inventory | Returns pet inventories by status |
| 80 | +*StoreApi* | **getOrderById** | **GET** /store/order/${orderId} | Find purchase order by ID |
| 81 | +*StoreApi* | **placeOrder** | **POST** /store/order | Place an order for a pet |
| 82 | +*UserApi* | **createUser** | **POST** /user | Create user |
| 83 | +*UserApi* | **createUsersWithArrayInput** | **POST** /user/createWithArray | Creates list of users with given input array |
| 84 | +*UserApi* | **createUsersWithListInput** | **POST** /user/createWithList | Creates list of users with given input array |
| 85 | +*UserApi* | **deleteUser** | **DELETE** /user/${username} | Delete user |
| 86 | +*UserApi* | **getUserByName** | **GET** /user/${username} | Get user by user name |
| 87 | +*UserApi* | **loginUser** | **GET** /user/login | Logs user into the system |
| 88 | +*UserApi* | **logoutUser** | **GET** /user/logout | Logs out current logged in user session |
| 89 | +*UserApi* | **updateUser** | **PUT** /user/${username} | Updated user |
| 90 | + |
| 91 | + |
| 92 | +## Documentation for Models |
| 93 | + |
| 94 | + - [ApiResponse](ApiResponse.md) |
| 95 | + - [Category](Category.md) |
| 96 | + - [EnumTest](EnumTest.md) |
| 97 | + - [Order](Order.md) |
| 98 | + - [Pet](Pet.md) |
| 99 | + - [PropertyNameMapping](PropertyNameMapping.md) |
| 100 | + - [Tag](Tag.md) |
| 101 | + - [User](User.md) |
| 102 | + |
| 103 | + |
| 104 | +<a id="documentation-for-authorization"></a> |
| 105 | +## Documentation for Authorization |
| 106 | + |
| 107 | + |
| 108 | +Authentication schemes defined for the API: |
| 109 | +<a id="api_key"></a> |
| 110 | +### api_key |
| 111 | + |
| 112 | +- **Type**: API key |
| 113 | +- **API key parameter name**: api_key |
| 114 | +- **Location**: HTTP header |
| 115 | + |
| 116 | + |
| 117 | +## Author |
| 118 | + |
| 119 | + |
| 120 | + |
0 commit comments