Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Regenerates samples
  • Loading branch information
spacether committed Apr 17, 2022
commit a89a768f001302acee7e86204cf947d8f6b6142e
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ docs/ArrayOfEnums.md
docs/ArrayOfNumberOnly.md
docs/ArrayTest.md
docs/ArrayWithValidationsInItems.md
docs/AuthenticateCredentials.md
docs/AuthenticateError.md
docs/AuthenticateSuccess.md
docs/Banana.md
docs/BananaReq.md
docs/Bar.md
Expand Down Expand Up @@ -161,6 +164,9 @@ petstore_api/model/array_of_enums.py
petstore_api/model/array_of_number_only.py
petstore_api/model/array_test.py
petstore_api/model/array_with_validations_in_items.py
petstore_api/model/authenticate_credentials.py
petstore_api/model/authenticate_error.py
petstore_api/model/authenticate_success.py
petstore_api/model/banana.py
petstore_api/model/banana_req.py
petstore_api/model/bar.py
Expand Down Expand Up @@ -277,4 +283,7 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_authenticate_credentials.py
test/test_authenticate_error.py
test/test_authenticate_success.py
tox.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0-SNAPSHOT
unset
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
*FakeApi* | [**additional_properties_with_array_of_enums**](docs/FakeApi.md#additional_properties_with_array_of_enums) | **GET** /fake/additional-properties-with-array-of-enums | Additional Properties with Array of Enums
*FakeApi* | [**array_model**](docs/FakeApi.md#array_model) | **POST** /fake/refs/arraymodel |
*FakeApi* | [**array_of_enums**](docs/FakeApi.md#array_of_enums) | **POST** /fake/refs/array-of-enums | Array of Enums
*FakeApi* | [**authenticate_user**](docs/FakeApi.md#authenticate_user) | **POST** /fake/authenticate |
*FakeApi* | [**body_with_file_schema**](docs/FakeApi.md#body_with_file_schema) | **PUT** /fake/body-with-file-schema |
*FakeApi* | [**body_with_query_params**](docs/FakeApi.md#body_with_query_params) | **PUT** /fake/body-with-query-params |
*FakeApi* | [**boolean**](docs/FakeApi.md#boolean) | **POST** /fake/refs/boolean |
Expand Down Expand Up @@ -154,6 +155,9 @@ Class | Method | HTTP request | Description
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
- [ArrayWithValidationsInItems](docs/ArrayWithValidationsInItems.md)
- [AuthenticateCredentials](docs/AuthenticateCredentials.md)
- [AuthenticateError](docs/AuthenticateError.md)
- [AuthenticateSuccess](docs/AuthenticateSuccess.md)
- [Banana](docs/Banana.md)
- [BananaReq](docs/BananaReq.md)
- [Bar](docs/Bar.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AuthenticateCredentials

user credentials

#### Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **str** | |
**password** | **str** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AuthenticateError

#### Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | **str** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AuthenticateSuccess

#### Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**success** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

101 changes: 101 additions & 0 deletions samples/openapi3/client/petstore/python-experimental/docs/FakeApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Method | HTTP request | Description
[**additional_properties_with_array_of_enums**](FakeApi.md#additional_properties_with_array_of_enums) | **GET** /fake/additional-properties-with-array-of-enums | Additional Properties with Array of Enums
[**array_model**](FakeApi.md#array_model) | **POST** /fake/refs/arraymodel |
[**array_of_enums**](FakeApi.md#array_of_enums) | **POST** /fake/refs/array-of-enums | Array of Enums
[**authenticate_user**](FakeApi.md#authenticate_user) | **POST** /fake/authenticate |
[**body_with_file_schema**](FakeApi.md#body_with_file_schema) | **PUT** /fake/body-with-file-schema |
[**body_with_query_params**](FakeApi.md#body_with_query_params) | **PUT** /fake/body-with-query-params |
[**boolean**](FakeApi.md#boolean) | **POST** /fake/refs/boolean |
Expand Down Expand Up @@ -290,6 +291,106 @@ No authorization required

[[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)

# **authenticate_user**
> AuthenticateSuccess authenticate_user(authenticate_credentials)



### Example

```python
import petstore_api
from petstore_api.api import fake_api
from petstore_api.model.authenticate_credentials import AuthenticateCredentials
from petstore_api.model.authenticate_error import AuthenticateError
from petstore_api.model.authenticate_success import AuthenticateSuccess
from pprint import pprint
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = petstore_api.Configuration(
host = "http://petstore.swagger.io:80/v2"
)

# Enter a context with an instance of the API client
with petstore_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fake_api.FakeApi(api_client)

# example passing only required values which don't have defaults set
body = AuthenticateCredentials(
email="email_example",
password="password_example",
)
try:
api_response = api_instance.authenticate_user(
body=body,
)
pprint(api_response)
except petstore_api.ApiException as e:
print("Exception when calling FakeApi->authenticate_user: %s\n" % e)
```
### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
body | typing.Union[SchemaForRequestBodyApplicationJson] | required |
content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body
accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client
stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client
skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned

### body

#### SchemaForRequestBodyApplicationJson
Type | Description | Notes
------------- | ------------- | -------------
[**AuthenticateCredentials**](AuthenticateCredentials.md) | |


### Return Types, Responses

Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
200 | ApiResponseFor200 | Success
default | ApiResponseForDefault | unexpected error response

#### ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | |
headers | Unset | headers were not defined |

#### SchemaFor200ResponseBodyApplicationJson
Type | Description | Notes
------------- | ------------- | -------------
[**AuthenticateSuccess**](AuthenticateSuccess.md) | |


#### ApiResponseForDefault
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | |
headers | Unset | headers were not defined |

#### SchemaFor0ResponseBodyApplicationJson
Type | Description | Notes
------------- | ------------- | -------------
[**AuthenticateError**](AuthenticateError.md) | |



[**AuthenticateSuccess**](AuthenticateSuccess.md)

### Authorization

No authorization required

[[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)

# **body_with_file_schema**
> body_with_file_schema(file_schema_test_class)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from petstore_api.api.fake_api_endpoints.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums
from petstore_api.api.fake_api_endpoints.array_model import ArrayModel
from petstore_api.api.fake_api_endpoints.array_of_enums import ArrayOfEnums
from petstore_api.api.fake_api_endpoints.authenticate_user import AuthenticateUser
from petstore_api.api.fake_api_endpoints.body_with_file_schema import BodyWithFileSchema
from petstore_api.api.fake_api_endpoints.body_with_query_params import BodyWithQueryParams
from petstore_api.api.fake_api_endpoints.boolean import Boolean
Expand Down Expand Up @@ -46,6 +47,7 @@ class FakeApi(
AdditionalPropertiesWithArrayOfEnums,
ArrayModel,
ArrayOfEnums,
AuthenticateUser,
BodyWithFileSchema,
BodyWithQueryParams,
Boolean,
Expand Down
Loading