forked from loafle/openapi-generator-original
Regenerate samples
This commit is contained in:
@@ -150,6 +150,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -382,6 +382,7 @@ catch (ApiException e)
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# OpenAPI Petstore - MicroProfile Rest Client
|
||||
# OpenAPI Petstore - MicroProfile Rest Client & MicroProfile Server
|
||||
|
||||
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
||||
@@ -6,3 +6,4 @@ This is a sample server Petstore server. For this sample, you can use the api ke
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
|
||||
[MicroProfile Rest Client](https://github.com/eclipse/microprofile-rest-client) is a type-safe way of calling
|
||||
REST services. The generated client contains an interface which acts as the client, you can inject it into dependent classes.
|
||||
|
||||
|
||||
@@ -301,6 +301,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# OpenAPI Petstore - MicroProfile Rest Client
|
||||
# OpenAPI Petstore - MicroProfile Rest Client & MicroProfile Server
|
||||
|
||||
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
|
||||
@@ -6,3 +6,4 @@ This is a sample server Petstore server. For this sample, you can use the api ke
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
|
||||
[MicroProfile Rest Client](https://github.com/eclipse/microprofile-rest-client) is a type-safe way of calling
|
||||
REST services. The generated client contains an interface which acts as the client, you can inject it into dependent classes.
|
||||
|
||||
|
||||
@@ -17,10 +17,12 @@ All URIs are relative to *http://petstore.swagger.io/v2*
|
||||
|
||||
## addPet
|
||||
|
||||
> void addPet(body)
|
||||
> Pet addPet(pet)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -42,9 +44,9 @@ public class Example {
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi(defaultClient);
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
void result = apiInstance.addPet(body);
|
||||
Pet result = apiInstance.addPet(pet);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
@@ -62,11 +64,11 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**void**](Void.md)
|
||||
[**Pet**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -75,12 +77,13 @@ public class Example {
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **405** | Invalid input | - |
|
||||
|
||||
|
||||
@@ -90,6 +93,8 @@ public class Example {
|
||||
|
||||
Deletes a pet
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -296,6 +301,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
@@ -376,10 +382,12 @@ public class Example {
|
||||
|
||||
## updatePet
|
||||
|
||||
> void updatePet(body)
|
||||
> Pet updatePet(pet)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -401,9 +409,9 @@ public class Example {
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi(defaultClient);
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
void result = apiInstance.updatePet(body);
|
||||
Pet result = apiInstance.updatePet(pet);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
@@ -421,11 +429,11 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**void**](Void.md)
|
||||
[**Pet**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -434,12 +442,13 @@ public class Example {
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, application/xml
|
||||
- **Accept**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid ID supplied | - |
|
||||
| **404** | Pet not found | - |
|
||||
| **405** | Validation exception | - |
|
||||
@@ -451,6 +460,8 @@ public class Example {
|
||||
|
||||
Updates a pet in the store with form data
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -524,6 +535,8 @@ public class Example {
|
||||
|
||||
uploads an image
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
|
||||
@@ -217,10 +217,12 @@ No authorization required
|
||||
|
||||
## placeOrder
|
||||
|
||||
> Order placeOrder(body)
|
||||
> Order placeOrder(order)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -237,9 +239,9 @@ public class Example {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
StoreApi apiInstance = new StoreApi(defaultClient);
|
||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
||||
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||
try {
|
||||
Order result = apiInstance.placeOrder(body);
|
||||
Order result = apiInstance.placeOrder(order);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||
@@ -257,7 +259,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
||||
| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -269,7 +271,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ All URIs are relative to *http://petstore.swagger.io/v2*
|
||||
|
||||
## createUser
|
||||
|
||||
> void createUser(body)
|
||||
> void createUser(user)
|
||||
|
||||
Create user
|
||||
|
||||
@@ -30,6 +30,7 @@ This can only be done by the logged in user.
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -37,11 +38,17 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
User body = new User(); // User | Created user object
|
||||
User user = new User(); // User | Created user object
|
||||
try {
|
||||
void result = apiInstance.createUser(body);
|
||||
void result = apiInstance.createUser(user);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUser");
|
||||
@@ -59,7 +66,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**User**](User.md)| Created user object | |
|
||||
| **user** | [**User**](User.md)| Created user object | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -67,11 +74,11 @@ public class Example {
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
@@ -83,10 +90,12 @@ No authorization required
|
||||
|
||||
## createUsersWithArrayInput
|
||||
|
||||
> void createUsersWithArrayInput(body)
|
||||
> void createUsersWithArrayInput(user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -94,6 +103,7 @@ Creates list of users with given input array
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -101,11 +111,17 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
||||
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||
try {
|
||||
void result = apiInstance.createUsersWithArrayInput(body);
|
||||
void result = apiInstance.createUsersWithArrayInput(user);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||
@@ -123,7 +139,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
||||
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -131,11 +147,11 @@ public class Example {
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
@@ -147,10 +163,12 @@ No authorization required
|
||||
|
||||
## createUsersWithListInput
|
||||
|
||||
> void createUsersWithListInput(body)
|
||||
> void createUsersWithListInput(user)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -158,6 +176,7 @@ Creates list of users with given input array
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -165,11 +184,17 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
||||
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||
try {
|
||||
void result = apiInstance.createUsersWithListInput(body);
|
||||
void result = apiInstance.createUsersWithListInput(user);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||
@@ -187,7 +212,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
||||
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -195,11 +220,11 @@ public class Example {
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
@@ -224,6 +249,7 @@ This can only be done by the logged in user.
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -231,6 +257,12 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
String username = "username_example"; // String | The name that needs to be deleted
|
||||
@@ -261,7 +293,7 @@ public class Example {
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -282,6 +314,8 @@ No authorization required
|
||||
|
||||
Get user by user name
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -348,6 +382,8 @@ No authorization required
|
||||
|
||||
Logs user into the system
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -405,7 +441,7 @@ No authorization required
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> |
|
||||
| **200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication. <br> * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> |
|
||||
| **400** | Invalid username/password supplied | - |
|
||||
|
||||
|
||||
@@ -415,6 +451,8 @@ No authorization required
|
||||
|
||||
Logs out current logged in user session
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -422,6 +460,7 @@ Logs out current logged in user session
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -429,6 +468,12 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
try {
|
||||
@@ -455,7 +500,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -471,7 +516,7 @@ No authorization required
|
||||
|
||||
## updateUser
|
||||
|
||||
> void updateUser(username, body)
|
||||
> void updateUser(username, user)
|
||||
|
||||
Updated user
|
||||
|
||||
@@ -484,6 +529,7 @@ This can only be done by the logged in user.
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.auth.*;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.UserApi;
|
||||
|
||||
@@ -491,12 +537,18 @@ public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io/v2");
|
||||
|
||||
// Configure API key authorization: api_key
|
||||
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
|
||||
api_key.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//api_key.setApiKeyPrefix("Token");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
String username = "username_example"; // String | name that need to be deleted
|
||||
User body = new User(); // User | Updated user object
|
||||
User user = new User(); // User | Updated user object
|
||||
try {
|
||||
void result = apiInstance.updateUser(username, body);
|
||||
void result = apiInstance.updateUser(username, user);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#updateUser");
|
||||
@@ -515,7 +567,7 @@ public class Example {
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **username** | **String**| name that need to be deleted | |
|
||||
| **body** | [**User**](User.md)| Updated user object | |
|
||||
| **user** | [**User**](User.md)| Updated user object | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -523,11 +575,11 @@ public class Example {
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[api_key](../README.md#api_key)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
||||
*
|
||||
*/
|
||||
|
||||
@RegisterRestClient(configKey="petstore")
|
||||
@RegisterRestClient(configKey="pet-api")
|
||||
@RegisterProvider(ApiExceptionMapper.class)
|
||||
@Path("/pet")
|
||||
public interface PetApi {
|
||||
@@ -45,15 +45,20 @@ public interface PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
|
||||
@Consumes({ "application/json", "application/xml" })
|
||||
void addPet(Pet body) throws ApiException, ProcessingException;
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
Pet addPet(Pet pet) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/{petId}")
|
||||
@@ -97,15 +102,20 @@ public interface PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
|
||||
@Consumes({ "application/json", "application/xml" })
|
||||
void updatePet(Pet body) throws ApiException, ProcessingException;
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
Pet updatePet(Pet pet) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/{petId}")
|
||||
@@ -115,6 +125,8 @@ public interface PetApi {
|
||||
/**
|
||||
* uploads an image
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/{petId}/uploadImage")
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
||||
*
|
||||
*/
|
||||
|
||||
@RegisterRestClient(configKey="petstore")
|
||||
@RegisterRestClient(configKey="store-api")
|
||||
@RegisterProvider(ApiExceptionMapper.class)
|
||||
@Path("/store")
|
||||
public interface StoreApi {
|
||||
@@ -75,9 +75,12 @@ public interface StoreApi {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/order")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
Order placeOrder(Order body) throws ApiException, ProcessingException;
|
||||
Order placeOrder(Order order) throws ApiException, ProcessingException;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
||||
*
|
||||
*/
|
||||
|
||||
@RegisterRestClient(configKey="petstore")
|
||||
@RegisterRestClient(configKey="user-api")
|
||||
@RegisterProvider(ApiExceptionMapper.class)
|
||||
@Path("/user")
|
||||
public interface UserApi {
|
||||
@@ -49,23 +49,30 @@ public interface UserApi {
|
||||
*/
|
||||
@POST
|
||||
|
||||
void createUser(User body) throws ApiException, ProcessingException;
|
||||
@Consumes({ "application/json" })
|
||||
void createUser(User user) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/createWithArray")
|
||||
void createUsersWithArrayInput(List<User> body) throws ApiException, ProcessingException;
|
||||
@Consumes({ "application/json" })
|
||||
void createUsersWithArrayInput(List<User> user) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/createWithList")
|
||||
void createUsersWithListInput(List<User> body) throws ApiException, ProcessingException;
|
||||
@Consumes({ "application/json" })
|
||||
void createUsersWithListInput(List<User> user) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Delete user
|
||||
@@ -80,6 +87,8 @@ public interface UserApi {
|
||||
/**
|
||||
* Get user by user name
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/{username}")
|
||||
@@ -89,6 +98,8 @@ public interface UserApi {
|
||||
/**
|
||||
* Logs user into the system
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/login")
|
||||
@@ -98,6 +109,8 @@ public interface UserApi {
|
||||
/**
|
||||
* Logs out current logged in user session
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/logout")
|
||||
@@ -111,5 +124,6 @@ public interface UserApi {
|
||||
*/
|
||||
@PUT
|
||||
@Path("/{username}")
|
||||
void updateUser(@PathParam("username") String username, User body) throws ApiException, ProcessingException;
|
||||
@Consumes({ "application/json" })
|
||||
void updateUser(@PathParam("username") String username, User user) throws ApiException, ProcessingException;
|
||||
}
|
||||
|
||||
@@ -210,7 +210,9 @@ public class Pet {
|
||||
/**
|
||||
* pet status in the store
|
||||
* @return status
|
||||
* @deprecated
|
||||
**/
|
||||
@Deprecated
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -530,6 +530,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
## findPetsByTagsWithHttpInfo
|
||||
@@ -604,6 +605,7 @@ ApiResponse<[**List<Pet>**](Pet.md)>
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -292,6 +292,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
<a id="getPetById"></a>
|
||||
|
||||
@@ -470,6 +470,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -546,6 +547,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -566,6 +568,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -588,6 +591,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -284,6 +284,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
<a id="getPetById"></a>
|
||||
|
||||
@@ -470,6 +470,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -546,6 +547,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -566,6 +568,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -588,6 +591,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -284,6 +284,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
<a id="getPetById"></a>
|
||||
|
||||
@@ -470,6 +470,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -546,6 +547,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -566,6 +568,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -588,6 +591,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -300,6 +300,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return List<Pet>
|
||||
@@ -218,6 +219,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return ResponseEntity<List<Pet>>
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -300,6 +300,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return List<Pet>
|
||||
@@ -218,6 +219,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return ResponseEntity<List<Pet>>
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -300,6 +300,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return List<Pet>
|
||||
@@ -218,6 +219,7 @@ public class PetApi {
|
||||
* Finds Pets by tags
|
||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>206</b> - successful operation
|
||||
* <p><b>400</b> - Invalid tag value
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return ResponseEntity<List<Pet>>
|
||||
|
||||
@@ -109,6 +109,7 @@ end
|
||||
|
||||
const _returntypes_find_pets_by_tags_PetApi = Dict{Regex,Type}(
|
||||
Regex("^" * replace("200", "x"=>".") * "\$") => Vector{Pet},
|
||||
Regex("^" * replace("206", "x"=>".") * "\$") => Vector{Pet},
|
||||
Regex("^" * replace("400", "x"=>".") * "\$") => Nothing,
|
||||
)
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ export public async function PetApi__findPetsByStatus(fe : ApiExecuterI, status:
|
||||
* @param fe Callback interface that runs the fetch query
|
||||
* @param tags Tags to filter by
|
||||
* @response 200 [Pet[]] successful operation
|
||||
* @response 206 [Pet[]] successful operation
|
||||
* @response 400 [undefined] Invalid tag value
|
||||
*/
|
||||
export public async function PetApi__findPetsByTags(fe : ApiExecuterI, tags: string[]) : Promise<Pet[], Object | ApiError<>> {
|
||||
|
||||
@@ -8,6 +8,8 @@ src/App/DTO/Category.php
|
||||
src/App/DTO/Collection.php
|
||||
src/App/DTO/Collection1.php
|
||||
src/App/DTO/Collection10.php
|
||||
src/App/DTO/Collection11.php
|
||||
src/App/DTO/Collection12.php
|
||||
src/App/DTO/Collection2.php
|
||||
src/App/DTO/Collection3.php
|
||||
src/App/DTO/Collection4.php
|
||||
|
||||
@@ -171,7 +171,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
//region createUsersWithArrayInput
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return ResponseInterface
|
||||
@@ -179,7 +179,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws DT\Exception\InvalidData
|
||||
*/
|
||||
public function createUsersWithArrayInputRaw(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): ResponseInterface
|
||||
@@ -192,7 +192,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return array
|
||||
@@ -201,7 +201,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
*/
|
||||
public function createUsersWithArrayInput(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): array
|
||||
@@ -220,7 +220,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return mixed
|
||||
@@ -230,7 +230,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\UnsuccessfulResponse
|
||||
*/
|
||||
public function createUsersWithArrayInputResult(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): mixed
|
||||
@@ -242,7 +242,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
//region createUsersWithListInput
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return ResponseInterface
|
||||
@@ -250,7 +250,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws DT\Exception\InvalidData
|
||||
*/
|
||||
public function createUsersWithListInputRaw(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): ResponseInterface
|
||||
@@ -263,7 +263,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return array
|
||||
@@ -272,7 +272,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
*/
|
||||
public function createUsersWithListInput(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): array
|
||||
@@ -291,7 +291,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return mixed
|
||||
@@ -301,7 +301,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\UnsuccessfulResponse
|
||||
*/
|
||||
public function createUsersWithListInputResult(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): mixed
|
||||
@@ -623,6 +623,10 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection6();
|
||||
break;
|
||||
case 206:
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection8();
|
||||
break;
|
||||
case 400:
|
||||
/* Invalid tag value */
|
||||
break;
|
||||
@@ -692,7 +696,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
{
|
||||
case 200:
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection8();
|
||||
$responseContent = new \App\DTO\Collection10();
|
||||
break;
|
||||
}
|
||||
$this->parseBody($response, $responseContent);
|
||||
@@ -703,7 +707,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* Returns pet inventories by status
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $responseMediaType
|
||||
* @return \App\DTO\Collection8
|
||||
* @return \App\DTO\Collection10
|
||||
* @throws ClientExceptionInterface
|
||||
* @throws DT\Exception\InvalidData
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
@@ -712,7 +716,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
public function getInventoryResult(
|
||||
iterable $security = ['api_key' => []],
|
||||
string $responseMediaType = 'application/json'
|
||||
): \App\DTO\Collection8
|
||||
): \App\DTO\Collection10
|
||||
{
|
||||
return $this->getSuccessfulContent(...$this->getInventory($security, $responseMediaType));
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\User::class])]
|
||||
#[DTA\Strategy("ScalarMap", ["type" => "int"])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\User::class]]
|
||||
["name" => "Scalar", "options" => ["type" => "int"]]
|
||||
]])]
|
||||
class Collection10 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ScalarMap", ["type" => "int"])]
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\Pet::class])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "Scalar", "options" => ["type" => "int"]]
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\Pet::class]]
|
||||
]])]
|
||||
class Collection8 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\User::class])]
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\Pet::class])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\User::class]]
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\Pet::class]]
|
||||
]])]
|
||||
class Collection9 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -8,6 +8,8 @@ src/App/DTO/Category.php
|
||||
src/App/DTO/Collection.php
|
||||
src/App/DTO/Collection1.php
|
||||
src/App/DTO/Collection10.php
|
||||
src/App/DTO/Collection11.php
|
||||
src/App/DTO/Collection12.php
|
||||
src/App/DTO/Collection2.php
|
||||
src/App/DTO/Collection3.php
|
||||
src/App/DTO/Collection4.php
|
||||
|
||||
@@ -171,7 +171,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
//region createUsersWithArrayInput
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return ResponseInterface
|
||||
@@ -179,7 +179,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws DT\Exception\InvalidData
|
||||
*/
|
||||
public function createUsersWithArrayInputRaw(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): ResponseInterface
|
||||
@@ -192,7 +192,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return array
|
||||
@@ -201,7 +201,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
*/
|
||||
public function createUsersWithArrayInput(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): array
|
||||
@@ -220,7 +220,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return mixed
|
||||
@@ -230,7 +230,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\UnsuccessfulResponse
|
||||
*/
|
||||
public function createUsersWithArrayInputResult(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
)
|
||||
@@ -242,7 +242,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
//region createUsersWithListInput
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return ResponseInterface
|
||||
@@ -250,7 +250,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws DT\Exception\InvalidData
|
||||
*/
|
||||
public function createUsersWithListInputRaw(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): ResponseInterface
|
||||
@@ -263,7 +263,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return array
|
||||
@@ -272,7 +272,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
*/
|
||||
public function createUsersWithListInput(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
): array
|
||||
@@ -291,7 +291,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param \App\DTO\Collection10 $requestContent
|
||||
* @param \App\DTO\Collection12 $requestContent
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $requestMediaType
|
||||
* @return mixed
|
||||
@@ -301,7 +301,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* @throws OAGAC\Exception\UnsuccessfulResponse
|
||||
*/
|
||||
public function createUsersWithListInputResult(
|
||||
\App\DTO\Collection10 $requestContent,
|
||||
\App\DTO\Collection12 $requestContent,
|
||||
iterable $security = ['api_key' => []],
|
||||
string $requestMediaType = 'application/json'
|
||||
)
|
||||
@@ -623,6 +623,10 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection6();
|
||||
break;
|
||||
case 206:
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection8();
|
||||
break;
|
||||
case 400:
|
||||
/* Invalid tag value */
|
||||
break;
|
||||
@@ -692,7 +696,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
{
|
||||
case 200:
|
||||
/* successful operation */
|
||||
$responseContent = new \App\DTO\Collection8();
|
||||
$responseContent = new \App\DTO\Collection10();
|
||||
break;
|
||||
}
|
||||
$this->parseBody($response, $responseContent);
|
||||
@@ -703,7 +707,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
* Returns pet inventories by status
|
||||
* @param iterable|string[][] $security
|
||||
* @param string $responseMediaType
|
||||
* @return \App\DTO\Collection8
|
||||
* @return \App\DTO\Collection10
|
||||
* @throws ClientExceptionInterface
|
||||
* @throws DT\Exception\InvalidData
|
||||
* @throws OAGAC\Exception\InvalidResponseBodySchema
|
||||
@@ -712,7 +716,7 @@ class ApiClient extends OAGAC\AbstractApiClient
|
||||
public function getInventoryResult(
|
||||
iterable $security = ['api_key' => []],
|
||||
string $responseMediaType = 'application/json'
|
||||
): \App\DTO\Collection8
|
||||
): \App\DTO\Collection10
|
||||
{
|
||||
return $this->getSuccessfulContent(...$this->getInventory($security, $responseMediaType));
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace App\DTO;
|
||||
use Articus\DataTransfer\Annotation as DTA;
|
||||
|
||||
/**
|
||||
* @DTA\Strategy(name="ObjectList", options={"type":\App\DTO\User::class})
|
||||
* @DTA\Strategy(name="ScalarMap", options={"type":"int"})
|
||||
* @DTA\Validator(name="Collection", options={"validators":{
|
||||
* {"name":"TypeCompliant", "options":{"type":\App\DTO\User::class}}
|
||||
* {"name":"Scalar", "options":{"type":"int"}}
|
||||
* }})
|
||||
*/
|
||||
class Collection10 extends \ArrayObject
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace App\DTO;
|
||||
use Articus\DataTransfer\Annotation as DTA;
|
||||
|
||||
/**
|
||||
* @DTA\Strategy(name="ScalarMap", options={"type":"int"})
|
||||
* @DTA\Strategy(name="ObjectList", options={"type":\App\DTO\Pet::class})
|
||||
* @DTA\Validator(name="Collection", options={"validators":{
|
||||
* {"name":"Scalar", "options":{"type":"int"}}
|
||||
* {"name":"TypeCompliant", "options":{"type":\App\DTO\Pet::class}}
|
||||
* }})
|
||||
*/
|
||||
class Collection8 extends \ArrayObject
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace App\DTO;
|
||||
use Articus\DataTransfer\Annotation as DTA;
|
||||
|
||||
/**
|
||||
* @DTA\Strategy(name="ObjectList", options={"type":\App\DTO\User::class})
|
||||
* @DTA\Strategy(name="ObjectList", options={"type":\App\DTO\Pet::class})
|
||||
* @DTA\Validator(name="Collection", options={"validators":{
|
||||
* {"name":"TypeCompliant", "options":{"type":\App\DTO\User::class}}
|
||||
* {"name":"TypeCompliant", "options":{"type":\App\DTO\Pet::class}}
|
||||
* }})
|
||||
*/
|
||||
class Collection9 extends \ArrayObject
|
||||
|
||||
@@ -76,6 +76,7 @@ class PetApi(baseUrl: String) {
|
||||
*
|
||||
* Expected answers:
|
||||
* code 200 : Seq[Pet] (successful operation)
|
||||
* code 206 : Seq[Pet] (successful operation)
|
||||
* code 400 : (Invalid tag value)
|
||||
*
|
||||
* @param tags Tags to filter by
|
||||
|
||||
@@ -138,6 +138,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -157,6 +158,7 @@ public interface PetApi {
|
||||
)
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||
@ApiResponse(code = 206, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||
@ApiResponse(code = 400, message = "Invalid tag value")
|
||||
})
|
||||
@RequestMapping(
|
||||
|
||||
@@ -138,6 +138,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -157,6 +158,7 @@ public interface PetApi {
|
||||
)
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||
@ApiResponse(code = 206, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||
@ApiResponse(code = 400, message = "Invalid tag value")
|
||||
})
|
||||
@RequestMapping(
|
||||
|
||||
@@ -176,7 +176,7 @@ module.exports = {
|
||||
return results;
|
||||
})
|
||||
},
|
||||
sample: samples['PetSample']
|
||||
sample: samples['PetSample']samples['PetSample']
|
||||
}
|
||||
},
|
||||
getPetById: {
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -296,6 +296,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -222,6 +223,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -296,6 +296,7 @@ public class Example {
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **206** | successful operation | - |
|
||||
| **400** | Invalid tag value | - |
|
||||
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
@@ -222,6 +223,7 @@ public class PetApi {
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 206 </td><td> successful operation </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
||||
</table>
|
||||
* @deprecated
|
||||
|
||||
@@ -87,6 +87,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
@@ -143,6 +143,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -157,6 +158,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -144,6 +144,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -158,6 +159,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -143,6 +143,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -157,6 +158,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -143,6 +143,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -157,6 +158,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -184,6 +184,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -198,6 +199,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -530,6 +530,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -532,6 +532,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -530,6 +530,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -503,6 +503,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -530,6 +530,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -253,6 +253,7 @@ Name | Type | Description | Notes
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**200** | successful operation | - |
|
||||
**206** | successful operation | - |
|
||||
**400** | Invalid tag value | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
||||
|
||||
@@ -532,6 +532,13 @@ export class PetApiResponseProcessor {
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("206", response.httpStatusCode)) {
|
||||
const body: Array<Pet> = ObjectSerializer.deserialize(
|
||||
ObjectSerializer.parse(await response.body.text(), contentType),
|
||||
"Array<Pet>", ""
|
||||
) as Array<Pet>;
|
||||
return body;
|
||||
}
|
||||
if (isCodeInRange("400", response.httpStatusCode)) {
|
||||
throw new ApiException<undefined>(response.httpStatusCode, "Invalid tag value", undefined, response.headers);
|
||||
}
|
||||
|
||||
@@ -184,6 +184,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -198,6 +199,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -161,6 +161,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -184,6 +184,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -198,6 +199,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -161,6 +161,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -128,6 +128,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
@@ -161,6 +161,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -185,6 +185,7 @@ public interface PetApi {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -199,6 +200,10 @@ public interface PetApi {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = Pet.class))),
|
||||
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = Pet.class)))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
security = {
|
||||
|
||||
@@ -161,6 +161,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -198,6 +198,27 @@
|
||||
},
|
||||
"description" : "successful operation"
|
||||
},
|
||||
"206" : {
|
||||
"content" : {
|
||||
"application/xml" : {
|
||||
"schema" : {
|
||||
"items" : {
|
||||
"$ref" : "#/components/schemas/Pet"
|
||||
},
|
||||
"type" : "array"
|
||||
}
|
||||
},
|
||||
"application/json" : {
|
||||
"schema" : {
|
||||
"items" : {
|
||||
"$ref" : "#/components/schemas/Pet"
|
||||
},
|
||||
"type" : "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description" : "successful operation"
|
||||
},
|
||||
"400" : {
|
||||
"description" : "Invalid tag value"
|
||||
}
|
||||
|
||||
@@ -443,6 +443,8 @@ validate_response('FindPetsByStatus', 400, Body, ValidatorState) ->
|
||||
|
||||
validate_response('FindPetsByTags', 200, Body, ValidatorState) ->
|
||||
validate_response_body('list', 'Pet', Body, ValidatorState);
|
||||
validate_response('FindPetsByTags', 206, Body, ValidatorState) ->
|
||||
validate_response_body('list', 'Pet', Body, ValidatorState);
|
||||
validate_response('FindPetsByTags', 400, Body, ValidatorState) ->
|
||||
validate_response_body('', '', Body, ValidatorState);
|
||||
|
||||
|
||||
@@ -150,6 +150,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -75,6 +75,9 @@ func (s *PetAPIService) FindPetsByTags(ctx context.Context, tags []string) (Impl
|
||||
// TODO: Uncomment the next line to return response Response(200, []Pet{}) or use other options such as http.Ok ...
|
||||
// return Response(200, []Pet{}), nil
|
||||
|
||||
// TODO: Uncomment the next line to return response Response(206, []Pet{}) or use other options such as http.Ok ...
|
||||
// return Response(206, []Pet{}), nil
|
||||
|
||||
// TODO: Uncomment the next line to return response Response(400, {}) or use other options such as http.Ok ...
|
||||
// return Response(400, nil),nil
|
||||
|
||||
|
||||
@@ -150,6 +150,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -150,6 +150,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -157,6 +157,10 @@ public class PetController {
|
||||
@Content(mediaType = "application/xml", schema = @Schema(implementation = Pet.class)),
|
||||
@Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))
|
||||
}),
|
||||
@ApiResponse(responseCode = "206", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/xml", schema = @Schema(implementation = Pet.class)),
|
||||
@Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))
|
||||
}),
|
||||
@ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
},
|
||||
parameters = {
|
||||
|
||||
@@ -155,6 +155,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -44,6 +44,7 @@ interface PetApiService {
|
||||
*
|
||||
* @param tags Tags to filter by (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or successful operation (status code 206)
|
||||
* or Invalid tag value (status code 400)
|
||||
* @deprecated
|
||||
* @see PetApi#findPetsByTags
|
||||
|
||||
@@ -102,6 +102,7 @@ interface PetApi {
|
||||
description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
|
||||
responses = [
|
||||
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
|
||||
ApiResponse(responseCode = "206", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
|
||||
ApiResponse(responseCode = "400", description = "Invalid tag value")
|
||||
],
|
||||
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "read:pets" ]) ]
|
||||
|
||||
@@ -150,6 +150,19 @@ paths:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"206":
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
type: array
|
||||
description: successful operation
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
|
||||
@@ -12,6 +12,8 @@ src/App/DTO/Category.php
|
||||
src/App/DTO/Collection.php
|
||||
src/App/DTO/Collection1.php
|
||||
src/App/DTO/Collection10.php
|
||||
src/App/DTO/Collection11.php
|
||||
src/App/DTO/Collection12.php
|
||||
src/App/DTO/Collection2.php
|
||||
src/App/DTO/Collection3.php
|
||||
src/App/DTO/Collection4.php
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\User::class])]
|
||||
#[DTA\Strategy("ScalarMap", ["type" => "int"])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\User::class]]
|
||||
["name" => "Scalar", "options" => ["type" => "int"]]
|
||||
]])]
|
||||
class Collection10 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ScalarMap", ["type" => "int"])]
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\Pet::class])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "Scalar", "options" => ["type" => "int"]]
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\Pet::class]]
|
||||
]])]
|
||||
class Collection8 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace App\DTO;
|
||||
|
||||
use Articus\DataTransfer\PhpAttribute as DTA;
|
||||
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\User::class])]
|
||||
#[DTA\Strategy("ObjectList", ["type" => \App\DTO\Pet::class])]
|
||||
#[DTA\Validator("Collection", ["validators" => [
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\User::class]]
|
||||
["name" => "TypeCompliant", "options" => ["type" => \App\DTO\Pet::class]]
|
||||
]])]
|
||||
class Collection9 extends \ArrayObject
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ class StoreInventory
|
||||
#[PHA\Get()]
|
||||
// TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
|
||||
#[PHA\Producer("application/json", PHProducer\Transfer::class)]
|
||||
public function getInventory(ServerRequestInterface $request): \App\DTO\Collection8
|
||||
public function getInventory(ServerRequestInterface $request): \App\DTO\Collection10
|
||||
{
|
||||
//TODO implement method
|
||||
throw new PHException\HttpCode(501, "Not implemented");
|
||||
|
||||
@@ -19,11 +19,11 @@ class UserCreateWithArray
|
||||
#[PHA\Post()]
|
||||
// TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
|
||||
#[PHA\Consumer("application/json", PHConsumer\Json::class)]
|
||||
#[PHA\Attribute(PHAttribute\Transfer::class, ["type" => \App\DTO\Collection10::class, "objectAttr" => "bodyData"])]
|
||||
#[PHA\Attribute(PHAttribute\Transfer::class, ["type" => \App\DTO\Collection12::class, "objectAttr" => "bodyData"])]
|
||||
public function createUsersWithArrayInput(ServerRequestInterface $request)
|
||||
{
|
||||
//TODO implement method
|
||||
/** @var \App\DTO\Collection10 $bodyData */
|
||||
/** @var \App\DTO\Collection12 $bodyData */
|
||||
$bodyData = $request->getAttribute("bodyData");
|
||||
throw new PHException\HttpCode(501, "Not implemented");
|
||||
}
|
||||
|
||||
@@ -19,11 +19,11 @@ class UserCreateWithList
|
||||
#[PHA\Post()]
|
||||
// TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
|
||||
#[PHA\Consumer("application/json", PHConsumer\Json::class)]
|
||||
#[PHA\Attribute(PHAttribute\Transfer::class, ["type" => \App\DTO\Collection10::class, "objectAttr" => "bodyData"])]
|
||||
#[PHA\Attribute(PHAttribute\Transfer::class, ["type" => \App\DTO\Collection12::class, "objectAttr" => "bodyData"])]
|
||||
public function createUsersWithListInput(ServerRequestInterface $request)
|
||||
{
|
||||
//TODO implement method
|
||||
/** @var \App\DTO\Collection10 $bodyData */
|
||||
/** @var \App\DTO\Collection12 $bodyData */
|
||||
$bodyData = $request->getAttribute("bodyData");
|
||||
throw new PHException\HttpCode(501, "Not implemented");
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ src/App/DTO/Category.php
|
||||
src/App/DTO/Collection.php
|
||||
src/App/DTO/Collection1.php
|
||||
src/App/DTO/Collection10.php
|
||||
src/App/DTO/Collection11.php
|
||||
src/App/DTO/Collection12.php
|
||||
src/App/DTO/Collection2.php
|
||||
src/App/DTO/Collection3.php
|
||||
src/App/DTO/Collection4.php
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace App\DTO;
|
||||
use Articus\DataTransfer\Annotation as DTA;
|
||||
|
||||
/**
|
||||
* @DTA\Strategy(name="ObjectList", options={"type":\App\DTO\User::class})
|
||||
* @DTA\Strategy(name="ScalarMap", options={"type":"int"})
|
||||
* @DTA\Validator(name="Collection", options={"validators":{
|
||||
* {"name":"TypeCompliant", "options":{"type":\App\DTO\User::class}}
|
||||
* {"name":"Scalar", "options":{"type":"int"}}
|
||||
* }})
|
||||
*/
|
||||
class Collection10 extends \ArrayObject
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user