Skip to content

Commit

Permalink
Regenerate samples
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-oss committed Aug 2, 2023
1 parent 7e8fd05 commit b5bcbde
Show file tree
Hide file tree
Showing 112 changed files with 704 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 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.

## Overview
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.

Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **206** | successful operation | - |
| **400** | Invalid tag value | - |


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 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.

## Overview
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.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
Expand All @@ -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

Expand All @@ -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 | - |


Expand All @@ -90,6 +93,8 @@ public class Example {
Deletes a pet



### Example

```java
Expand Down Expand Up @@ -296,6 +301,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **206** | successful operation | - |
| **400** | Invalid tag value | - |


Expand Down Expand Up @@ -376,10 +382,12 @@ public class Example {

## updatePet

> void updatePet(body)
> Pet updatePet(pet)
Update an existing pet



### Example

```java
Expand All @@ -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");
Expand All @@ -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

Expand All @@ -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 | - |
Expand All @@ -451,6 +460,8 @@ public class Example {
Updates a pet in the store with form data



### Example

```java
Expand Down Expand Up @@ -524,6 +535,8 @@ public class Example {
uploads an image



### Example

```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,12 @@ No authorization required

## placeOrder

> Order placeOrder(body)
> Order placeOrder(order)
Place an order for a pet



### Example

```java
Expand All @@ -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");
Expand All @@ -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

Expand All @@ -269,7 +271,7 @@ No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/xml, application/json


Expand Down
Loading

0 comments on commit b5bcbde

Please sign in to comment.