[Spec] adds XmlItem model and route for xml testing (#1883)

* Adds xmlitem model and route, rest-assured Api suffix fix, updates pytest and pytest-cov versions

* Adds python client sample files

* Adds samples update

* Adds rest-assured sample client update

* Adds sample updates in ensure-up-to-date

* Changes rest-assured files back to master version, removes fix for issue #13

* Updates samples
This commit is contained in:
Justin Black
2019-01-26 01:26:38 -08:00
committed by William Cheng
parent 65d9e859be
commit 9ec594eec5
274 changed files with 54229 additions and 528 deletions

View File

@@ -4,6 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_xml_item**](FakeApi.md#create_xml_item) | **POST** /fake/create_xml_item | creates an XmlItem
[**fake_outer_boolean_serialize**](FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean |
[**fake_outer_composite_serialize**](FakeApi.md#fake_outer_composite_serialize) | **POST** /fake/outer/composite |
[**fake_outer_number_serialize**](FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number |
@@ -18,6 +19,53 @@ Method | HTTP request | Description
[**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
# **create_xml_item**
> create_xml_item(xml_item)
creates an XmlItem
this route creates an XmlItem
### Example
```python
from __future__ import print_function
import time
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
xml_item = petstore_api.XmlItem() # XmlItem | XmlItem Body
try:
# creates an XmlItem
api_instance.create_xml_item(xml_item)
except ApiException as e:
print("Exception when calling FakeApi->create_xml_item: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xml_item** | [**XmlItem**](XmlItem.md)| XmlItem Body |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
- **Accept**: Not defined
[[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)
# **fake_outer_boolean_serialize**
> bool fake_outer_boolean_serialize(body=body)

View File

@@ -0,0 +1,38 @@
# XmlItem
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attribute_string** | **str** | | [optional] [default to 'string']
**attribute_number** | **float** | | [optional] [default to 1.234]
**attribute_integer** | **int** | | [optional] [default to -2]
**attribute_boolean** | **bool** | | [optional] [default to True]
**wrapped_array** | **list[int]** | | [optional]
**name_string** | **str** | | [optional] [default to 'string']
**name_number** | **float** | | [optional] [default to 1.234]
**name_integer** | **int** | | [optional] [default to -2]
**name_boolean** | **bool** | | [optional] [default to True]
**name_array** | **list[int]** | | [optional]
**name_wrapped_array** | **list[int]** | | [optional]
**prefix_string** | **str** | | [optional] [default to 'string']
**prefix_number** | **float** | | [optional] [default to 1.234]
**prefix_integer** | **int** | | [optional] [default to -2]
**prefix_boolean** | **bool** | | [optional] [default to True]
**prefix_array** | **list[int]** | | [optional]
**prefix_wrapped_array** | **list[int]** | | [optional]
**namespace_string** | **str** | | [optional] [default to 'string']
**namespace_number** | **float** | | [optional] [default to 1.234]
**namespace_integer** | **int** | | [optional] [default to -2]
**namespace_boolean** | **bool** | | [optional] [default to True]
**namespace_array** | **list[int]** | | [optional]
**namespace_wrapped_array** | **list[int]** | | [optional]
**prefix_ns_string** | **str** | | [optional] [default to 'string']
**prefix_ns_number** | **float** | | [optional] [default to 1.234]
**prefix_ns_integer** | **int** | | [optional] [default to -2]
**prefix_ns_boolean** | **bool** | | [optional] [default to True]
**prefix_ns_array** | **list[int]** | | [optional]
**prefix_ns_wrapped_array** | **list[int]** | | [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)