forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[18929] added sample config and (re)generated samples
- Loading branch information
1 parent
49279ab
commit 57117e6
Showing
83 changed files
with
3,548 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
samples/client/others/rust/hyper/oneOf/docs/AbstractAnimal.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# AbstractAnimal | ||
|
||
## Enum Variants | ||
|
||
| Name | Value | | ||
|---- | -----| | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
samples/client/others/rust/hyper/oneOf/docs/AbstractCreateParkPerson.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# AbstractCreateParkPerson | ||
|
||
## Enum Variants | ||
|
||
| Name | Value | | ||
|---- | -----| | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Cat | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**r#type** | **String** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
samples/client/others/rust/hyper/oneOf/docs/CreateParkAnimalCarerPerson.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateParkAnimalCarerPerson | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**responsible_for** | Option<[**models::OneOfLessThanDogCommaCatGreaterThan**](oneOf<Dog,Cat>.md)> | | | ||
**r#type** | **String** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
samples/client/others/rust/hyper/oneOf/docs/CreateParkPersonRequest.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateParkPersonRequest | ||
|
||
## Enum Variants | ||
|
||
| Name | Description | | ||
|---- | -----| | ||
| CreateParkAnimalCarerPerson | | | ||
| CreateParkVisitorPerson | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
samples/client/others/rust/hyper/oneOf/docs/CreateParkVisitorPerson.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CreateParkVisitorPerson | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**r#type** | **String** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Dog | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**r#type** | **String** | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
37 changes: 37 additions & 0 deletions
37
samples/client/others/rust/hyper/oneOf/docs/PerkPersonApi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# \PerkPersonApi | ||
|
||
All URIs are relative to *http://localhost:8080* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**create_park_person**](PerkPersonApi.md#create_park_person) | **Post** /park-persons | Create a Park Person | ||
|
||
|
||
|
||
## create_park_person | ||
|
||
> String create_park_person(create_park_person_request) | ||
Create a Park Person | ||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Required | Notes | ||
------------- | ------------- | ------------- | ------------- | ------------- | ||
**create_park_person_request** | [**CreateParkPersonRequest**](CreateParkPersonRequest.md) | | [required] | | ||
|
||
### Return type | ||
|
||
**String** | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
samples/client/others/rust/hyper/oneOf/src/apis/perk_person_api.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* ByRefOrValue | ||
* | ||
* This tests for a oneOf interface representation | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* | ||
* Generated by: https://openapi-generator.tech | ||
*/ | ||
|
||
use std::rc::Rc; | ||
use std::borrow::Borrow; | ||
use std::pin::Pin; | ||
#[allow(unused_imports)] | ||
use std::option::Option; | ||
|
||
use hyper; | ||
use futures::Future; | ||
|
||
use crate::models; | ||
use super::{Error, configuration}; | ||
use super::request as __internal_request; | ||
|
||
pub struct PerkPersonApiClient<C: hyper::client::connect::Connect> | ||
where C: Clone + std::marker::Send + Sync + 'static { | ||
configuration: Rc<configuration::Configuration<C>>, | ||
} | ||
|
||
impl<C: hyper::client::connect::Connect> PerkPersonApiClient<C> | ||
where C: Clone + std::marker::Send + Sync { | ||
pub fn new(configuration: Rc<configuration::Configuration<C>>) -> PerkPersonApiClient<C> { | ||
PerkPersonApiClient { | ||
configuration, | ||
} | ||
} | ||
} | ||
|
||
pub trait PerkPersonApi { | ||
fn create_park_person(&self, create_park_person_request: models::CreateParkPersonRequest) -> Pin<Box<dyn Future<Output = Result<String, Error>>>>; | ||
} | ||
|
||
impl<C: hyper::client::connect::Connect>PerkPersonApi for PerkPersonApiClient<C> | ||
where C: Clone + std::marker::Send + Sync { | ||
#[allow(unused_mut)] | ||
fn create_park_person(&self, create_park_person_request: models::CreateParkPersonRequest) -> Pin<Box<dyn Future<Output = Result<String, Error>>>> { | ||
let mut req = __internal_request::Request::new(hyper::Method::POST, "/park-persons".to_string()) | ||
; | ||
req = req.with_body_param(create_park_person_request); | ||
|
||
req.execute(self.configuration.borrow()) | ||
} | ||
|
||
} |
Oops, something went wrong.