update eiffel with petstore oas2 (#268)

This commit is contained in:
William Cheng 2018-05-07 18:32:03 +08:00 committed by GitHub
parent d74b4cdf8d
commit a9baaa81e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
69 changed files with 817 additions and 323 deletions

View File

@ -89,7 +89,7 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co
typeMapping.put("password", "STRING");
typeMapping.put("File", "FILE");
typeMapping.put("file", "FILE");
typeMapping.put("binary", "STRING_32");
typeMapping.put("binary", "FILE");
typeMapping.put("ByteArray", "ARRAY [NATURAL_8]");
typeMapping.put("object", "ANY");
typeMapping.put("map", "STRING_TABLE");

View File

@ -23,7 +23,7 @@ Feature | HTTP request | Description
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
{{#allParams}} **{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
{{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{baseType}}.md){{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
{{/allParams}}
### Return type

View File

@ -1 +1 @@
2.3.0-SNAPSHOT
3.0.0-SNAPSHOT

View File

@ -1,13 +1,13 @@
# Eiffel API client for swagger
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
## Overview
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.EiffelClientCodegen
- Build package: org.openapitools.codegen.languages.EiffelClientCodegen
## Installation
Add the library into your Eiffel configuration file.
@ -17,10 +17,22 @@ Add the library into your Eiffel configuration file.
## Documentation for API Endpoints
All URIs are relative to *http://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ANOTHERFAKE_API* | [**test_special_tags**](docs/ANOTHERFAKE_API.md#test_special_tags) | **Patch** /another-fake/dummy | To test special tags
*FAKE_API* | [**fake_outer_boolean_serialize**](docs/FAKE_API.md#fake_outer_boolean_serialize) | **Post** /fake/outer/boolean |
*FAKE_API* | [**fake_outer_composite_serialize**](docs/FAKE_API.md#fake_outer_composite_serialize) | **Post** /fake/outer/composite |
*FAKE_API* | [**fake_outer_number_serialize**](docs/FAKE_API.md#fake_outer_number_serialize) | **Post** /fake/outer/number |
*FAKE_API* | [**fake_outer_string_serialize**](docs/FAKE_API.md#fake_outer_string_serialize) | **Post** /fake/outer/string |
*FAKE_API* | [**test_body_with_query_params**](docs/FAKE_API.md#test_body_with_query_params) | **Put** /fake/body-with-query-params |
*FAKE_API* | [**test_client_model**](docs/FAKE_API.md#test_client_model) | **Patch** /fake | To test \"client\" model
*FAKE_API* | [**test_endpoint_parameters**](docs/FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*FAKE_API* | [**test_enum_parameters**](docs/FAKE_API.md#test_enum_parameters) | **Get** /fake | To test enum parameters
*FAKE_API* | [**test_inline_additional_properties**](docs/FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties
*FAKE_API* | [**test_json_form_data**](docs/FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data
*FAKECLASSNAMETAGS123_API* | [**test_classname**](docs/FAKECLASSNAMETAGS123_API.md#test_classname) | **Patch** /fake_classname_test | To test class name in snake case
*PET_API* | [**add_pet**](docs/PET_API.md#add_pet) | **Post** /pet | Add a new pet to the store
*PET_API* | [**delete_pet**](docs/PET_API.md#delete_pet) | **Delete** /pet/{petId} | Deletes a pet
*PET_API* | [**find_pets_by_status**](docs/PET_API.md#find_pets_by_status) | **Get** /pet/findByStatus | Finds Pets by status
@ -29,9 +41,9 @@ Class | Method | HTTP request | Description
*PET_API* | [**update_pet**](docs/PET_API.md#update_pet) | **Put** /pet | Update an existing pet
*PET_API* | [**update_pet_with_form**](docs/PET_API.md#update_pet_with_form) | **Post** /pet/{petId} | Updates a pet in the store with form data
*PET_API* | [**upload_file**](docs/PET_API.md#upload_file) | **Post** /pet/{petId}/uploadImage | uploads an image
*STORE_API* | [**delete_order**](docs/STORE_API.md#delete_order) | **Delete** /store/order/{orderId} | Delete purchase order by ID
*STORE_API* | [**delete_order**](docs/STORE_API.md#delete_order) | **Delete** /store/order/{order_id} | Delete purchase order by ID
*STORE_API* | [**inventory**](docs/STORE_API.md#inventory) | **Get** /store/inventory | Returns pet inventories by status
*STORE_API* | [**order_by_id**](docs/STORE_API.md#order_by_id) | **Get** /store/order/{orderId} | Find purchase order by ID
*STORE_API* | [**order_by_id**](docs/STORE_API.md#order_by_id) | **Get** /store/order/{order_id} | Find purchase order by ID
*STORE_API* | [**place_order**](docs/STORE_API.md#place_order) | **Post** /store/order | Place an order for a pet
*USER_API* | [**create_user**](docs/USER_API.md#create_user) | **Post** /user | Create user
*USER_API* | [**create_users_with_array_input**](docs/USER_API.md#create_users_with_array_input) | **Post** /user/createWithArray | Creates list of users with given input array
@ -45,10 +57,36 @@ Class | Method | HTTP request | Description
## Documentation For Models
- [ADDITIONAL_PROPERTIES_CLASS](docs/ADDITIONAL_PROPERTIES_CLASS.md)
- [ANIMAL](docs/ANIMAL.md)
- [ANIMAL_FARM](docs/ANIMAL_FARM.md)
- [API_RESPONSE](docs/API_RESPONSE.md)
- [ARRAY_OF_ARRAY_OF_NUMBER_ONLY](docs/ARRAY_OF_ARRAY_OF_NUMBER_ONLY.md)
- [ARRAY_OF_NUMBER_ONLY](docs/ARRAY_OF_NUMBER_ONLY.md)
- [ARRAY_TEST](docs/ARRAY_TEST.md)
- [CAPITALIZATION](docs/CAPITALIZATION.md)
- [CAT](docs/CAT.md)
- [CATEGORY](docs/CATEGORY.md)
- [CLASS_MODEL](docs/CLASS_MODEL.md)
- [CLIENT](docs/CLIENT.md)
- [DOG](docs/DOG.md)
- [ENUM_ARRAYS](docs/ENUM_ARRAYS.md)
- [ENUM_CLASS](docs/ENUM_CLASS.md)
- [ENUM_TEST](docs/ENUM_TEST.md)
- [FORMAT_TEST](docs/FORMAT_TEST.md)
- [HAS_ONLY_READ_ONLY](docs/HAS_ONLY_READ_ONLY.md)
- [MAP_TEST](docs/MAP_TEST.md)
- [MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS](docs/MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS.md)
- [MODEL_200_RESPONSE](docs/MODEL_200_RESPONSE.md)
- [NAME](docs/NAME.md)
- [NUMBER_ONLY](docs/NUMBER_ONLY.md)
- [ORDER](docs/ORDER.md)
- [OUTER_COMPOSITE](docs/OUTER_COMPOSITE.md)
- [OUTER_ENUM](docs/OUTER_ENUM.md)
- [PET](docs/PET.md)
- [READ_ONLY_FIRST](docs/READ_ONLY_FIRST.md)
- [RETURN](docs/RETURN.md)
- [SPECIAL_MODEL_NAME](docs/SPECIAL_MODEL_NAME.md)
- [TAG](docs/TAG.md)
- [USER](docs/USER.md)
@ -62,6 +100,16 @@ Class | Method | HTTP request | Description
- **API key parameter name**: api_key
- **Location**: HTTP header
## api_key_query
- **Type**: API key
- **API key parameter name**: api_key_query
- **Location**: URL query string
## http_basic_test
- **Type**: HTTP basic authentication
## petstore_auth
- **Type**: OAuth

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="swagger_eiffel_client" uuid="fb819818-bd09-421e-84e6-a6b7ce8ecb39" library_target="swagger_eiffel_client">
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="swagger_eiffel_client" uuid="7c410689-cf67-4f0e-b19d-52edf62edf61" library_target="swagger_eiffel_client">
<target name="swagger_eiffel_client">
<root all_classes="true"/>
<file_rule>

View File

@ -0,0 +1,39 @@
# ANOTHERFAKE_API
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
[**test_special_tags**](ANOTHERFAKE_API.md#test_special_tags) | **Patch** /another-fake/dummy | To test special tags
# **test_special_tags**
> test_special_tags (client: CLIENT ): detachable CLIENT
To test special tags
To test special tags
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**CLIENT**](CLIENT.md)| client model |
### Return type
[**CLIENT**](Client.md)
### 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)

View File

@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enum_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**enum_string_required** | [**STRING_32**](STRING_32.md) | | [default to null]
**enum_integer** | **INTEGER_32** | | [optional] [default to null]
**enum_number** | **REAL_64** | | [optional] [default to null]
**outer_enum** | [**OUTER_ENUM**](OuterEnum.md) | | [optional] [default to null]

View File

@ -0,0 +1,39 @@
# FAKECLASSNAMETAGS123_API
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
[**test_classname**](FAKECLASSNAMETAGS123_API.md#test_classname) | **Patch** /fake_classname_test | To test class name in snake case
# **test_classname**
> test_classname (client: CLIENT ): detachable CLIENT
To test class name in snake case
To test class name in snake case
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**CLIENT**](CLIENT.md)| client model |
### Return type
[**CLIENT**](Client.md)
### Authorization
[api_key_query](../README.md#api_key_query)
### 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)

View File

@ -8,14 +8,16 @@ Feature | HTTP request | Description
[**fake_outer_composite_serialize**](FAKE_API.md#fake_outer_composite_serialize) | **Post** /fake/outer/composite |
[**fake_outer_number_serialize**](FAKE_API.md#fake_outer_number_serialize) | **Post** /fake/outer/number |
[**fake_outer_string_serialize**](FAKE_API.md#fake_outer_string_serialize) | **Post** /fake/outer/string |
[**test_body_with_query_params**](FAKE_API.md#test_body_with_query_params) | **Put** /fake/body-with-query-params |
[**test_client_model**](FAKE_API.md#test_client_model) | **Patch** /fake | To test \&quot;client\&quot; model
[**test_endpoint_parameters**](FAKE_API.md#test_endpoint_parameters) | **Post** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**test_enum_parameters**](FAKE_API.md#test_enum_parameters) | **Get** /fake | To test enum parameters
[**test_inline_additional_properties**](FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties
[**test_json_form_data**](FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data
# **fake_outer_boolean_serialize**
> fake_outer_boolean_serialize (body: detachable OUTER_BOOLEAN ): detachable OUTER_BOOLEAN
> fake_outer_boolean_serialize (body: detachable BOOLEAN ): detachable BOOLEAN
@ -27,11 +29,11 @@ Test serialization of outer boolean types
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_BOOLEAN**](OUTER_BOOLEAN.md)| Input boolean as post body | [optional]
**body** | **BOOLEAN**| Input boolean as post body | [optional]
### Return type
[**OUTER_BOOLEAN**](OuterBoolean.md)
**BOOLEAN**
### Authorization
@ -40,12 +42,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
[[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_composite_serialize**
> fake_outer_composite_serialize (body: detachable OUTER_COMPOSITE ): detachable OUTER_COMPOSITE
> fake_outer_composite_serialize (outer_composite: detachable OUTER_COMPOSITE ): detachable OUTER_COMPOSITE
@ -57,7 +59,7 @@ Test serialization of object with outer number type
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_COMPOSITE**](OUTER_COMPOSITE.md)| Input composite as post body | [optional]
**outer_composite** | [**OUTER_COMPOSITE**](OUTER_COMPOSITE.md)| Input composite as post body | [optional]
### Return type
@ -70,12 +72,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
[[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_number_serialize**
> fake_outer_number_serialize (body: detachable OUTER_NUMBER ): detachable OUTER_NUMBER
> fake_outer_number_serialize (body: detachable REAL_32 ): detachable REAL_32
@ -87,11 +89,11 @@ Test serialization of outer number types
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_NUMBER**](OUTER_NUMBER.md)| Input number as post body | [optional]
**body** | **REAL_32**| Input number as post body | [optional]
### Return type
[**OUTER_NUMBER**](OuterNumber.md)
**REAL_32**
### Authorization
@ -100,12 +102,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: */*
[[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_string_serialize**
> fake_outer_string_serialize (body: detachable OUTER_STRING ): detachable OUTER_STRING
> fake_outer_string_serialize (body: detachable STRING_32 ): detachable STRING_32
@ -117,11 +119,11 @@ Test serialization of outer string types
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_STRING**](OUTER_STRING.md)| Input string as post body | [optional]
**body** | **STRING_32**| Input string as post body | [optional]
### Return type
[**OUTER_STRING**](OuterString.md)
[**STRING_32**](STRING_32.md)
### Authorization
@ -130,12 +132,41 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: */*
[[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)
# **test_body_with_query_params**
> test_body_with_query_params (query: STRING_32 ; user: USER )
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **STRING_32**| |
**user** | [**USER**](USER.md)| |
### Return type
{empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **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)
# **test_client_model**
> test_client_model (body: CLIENT ): detachable CLIENT
> test_client_model (client: CLIENT ): detachable CLIENT
To test \"client\" model
@ -147,7 +178,7 @@ To test \"client\" model
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**CLIENT**](CLIENT.md)| client model |
**client** | [**CLIENT**](CLIENT.md)| client model |
### Return type
@ -165,7 +196,7 @@ 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)
# **test_endpoint_parameters**
> test_endpoint_parameters (number: REAL_32 ; double: REAL_64 ; pattern_without_delimiter: STRING_32 ; byte: ARRAY [NATURAL_8] ; integer: detachable INTEGER_32 ; int32: detachable INTEGER_32 ; int64: detachable INTEGER_64 ; float: detachable REAL_32 ; string: detachable STRING_32 ; binary: detachable STRING_32 ; date: detachable DATE ; date_time: detachable DATE_TIME ; password: detachable STRING_32 ; callback: detachable STRING_32 )
> test_endpoint_parameters (number: REAL_32 ; double: REAL_64 ; pattern_without_delimiter: STRING_32 ; byte: ARRAY [NATURAL_8] ; integer: detachable INTEGER_32 ; int32: detachable INTEGER_32 ; int64: detachable INTEGER_64 ; float: detachable REAL_32 ; string: detachable STRING_32 ; binary: detachable FILE ; date: detachable DATE ; date_time: detachable DATE_TIME ; password: detachable STRING_32 ; callback: detachable STRING_32 )
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -186,7 +217,7 @@ Name | Type | Description | Notes
**int64** | **INTEGER_64**| None | [optional]
**float** | **REAL_32**| None | [optional]
**string** | **STRING_32**| None | [optional]
**binary** | **STRING_32**| None | [optional]
**binary** | **FILE**| None | [optional]
**date** | **DATE**| None | [optional]
**date_time** | **DATE_TIME**| None | [optional]
**password** | **STRING_32**| None | [optional]
@ -202,13 +233,13 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Content-Type**: application/x-www-form-urlencoded
- **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)
# **test_enum_parameters**
> test_enum_parameters (enum_form_string_array: detachable LIST [STRING_32] ; enum_form_string: detachable STRING_32 ; enum_header_string_array: detachable LIST [STRING_32] ; enum_header_string: detachable STRING_32 ; enum_query_string_array: detachable LIST [STRING_32] ; enum_query_string: detachable STRING_32 ; enum_query_integer: detachable INTEGER_32 ; enum_query_double: detachable REAL_64 )
> test_enum_parameters (enum_header_string_array: detachable LIST [STRING_32] ; enum_header_string: detachable STRING_32 ; enum_query_string_array: detachable LIST [STRING_32] ; enum_query_string: detachable STRING_32 ; enum_query_integer: detachable INTEGER_32 ; enum_query_double: detachable REAL_64 ; enum_form_string_array: detachable LIST [STRING_32] ; enum_form_string: detachable STRING_32 )
To test enum parameters
@ -220,14 +251,14 @@ To test enum parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**enum_form_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Form parameter enum test (string array) | [optional]
**enum_form_string** | **STRING_32**| Form parameter enum test (string) | [optional] [default to -efg]
**enum_header_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Header parameter enum test (string array) | [optional]
**enum_header_string** | **STRING_32**| Header parameter enum test (string) | [optional] [default to -efg]
**enum_query_string_array** | [**LIST [STRING_32]**](STRING_32.md)| Query parameter enum test (string array) | [optional]
**enum_query_string** | **STRING_32**| Query parameter enum test (string) | [optional] [default to -efg]
**enum_query_integer** | **INTEGER_32**| Query parameter enum test (double) | [optional]
**enum_query_double** | **REAL_64**| Query parameter enum test (double) | [optional]
**enum_form_string_array** | [**LIST [STRING_32]**](LIST.md)| Form parameter enum test (string array) | [optional]
**enum_form_string** | **STRING_32**| Form parameter enum test (string) | [optional]
### Return type
@ -239,8 +270,36 @@ No authorization required
### HTTP request headers
- **Content-Type**: */*
- **Accept**: */*
- **Content-Type**: application/x-www-form-urlencoded
- **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)
# **test_inline_additional_properties**
> test_inline_additional_properties (request_body: STRING_32 )
test inline additionalProperties
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**request_body** | [**STRING_32**](STRING_32.md)| request body |
### Return type
{empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **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)
@ -251,8 +310,6 @@ No authorization required
test json serialization of form data
### Parameters
Name | Type | Description | Notes
@ -270,7 +327,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Content-Type**: application/x-www-form-urlencoded
- **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)

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**double** | **REAL_64** | | [optional] [default to null]
**string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**byte** | [**ARRAY [NATURAL_8]**](ARRAY [NATURAL_8].md) | | [default to null]
**binary** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**binary** | [**FILE**](FILE.md) | | [optional] [default to null]
**date** | [**DATE**](DATE.md) | | [default to null]
**date_time** | [**DATE_TIME**](DATE_TIME.md) | | [optional] [default to null]
**uuid** | [**UUID**](UUID.md) | | [optional] [default to null]

View File

@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**my_number** | [**OUTER_NUMBER**](OuterNumber.md) | | [optional] [default to null]
**my_string** | [**OUTER_STRING**](OuterString.md) | | [optional] [default to null]
**my_boolean** | [**OUTER_BOOLEAN**](OuterBoolean.md) | | [optional] [default to null]
**my_number** | **REAL_32** | | [optional] [default to null]
**my_string** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**my_boolean** | **BOOLEAN** | | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -1,6 +1,6 @@
# PET_API
All URIs are relative to *http://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
@ -15,19 +15,17 @@ Feature | HTTP request | Description
# **add_pet**
> add_pet (body: PET )
> add_pet (pet: PET )
Add a new pet to the store
### Parameters
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
@ -40,7 +38,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **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)
@ -51,8 +49,6 @@ Name | Type | Description | Notes
Deletes a pet
### Parameters
Name | Type | Description | Notes
@ -71,7 +67,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
@ -166,19 +162,17 @@ Name | Type | Description | Notes
[[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)
# **update_pet**
> update_pet (body: PET )
> update_pet (pet: PET )
Update an existing pet
### Parameters
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
@ -191,7 +185,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **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)
@ -202,8 +196,6 @@ Name | Type | Description | Notes
Updates a pet in the store with form data
### Parameters
Name | Type | Description | Notes
@ -223,7 +215,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/xml, application/json
- **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)
@ -234,8 +226,6 @@ Name | Type | Description | Notes
uploads an image
### Parameters
Name | Type | Description | Notes

View File

@ -1,12 +1,12 @@
# STORE_API
All URIs are relative to *http://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
[**delete_order**](STORE_API.md#delete_order) | **Delete** /store/order/{orderId} | Delete purchase order by ID
[**delete_order**](STORE_API.md#delete_order) | **Delete** /store/order/{order_id} | Delete purchase order by ID
[**inventory**](STORE_API.md#inventory) | **Get** /store/inventory | Returns pet inventories by status
[**order_by_id**](STORE_API.md#order_by_id) | **Get** /store/order/{orderId} | Find purchase order by ID
[**order_by_id**](STORE_API.md#order_by_id) | **Get** /store/order/{order_id} | Find purchase order by ID
[**place_order**](STORE_API.md#place_order) | **Post** /store/order | Place an order for a pet
@ -36,7 +36,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
@ -98,19 +98,17 @@ 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)
# **place_order**
> place_order (body: ORDER ): detachable ORDER
> place_order (order: ORDER ): detachable ORDER
Place an order for a pet
### Parameters
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

View File

@ -1,6 +1,6 @@
# USER_API
All URIs are relative to *http://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
@ -15,7 +15,7 @@ Feature | HTTP request | Description
# **create_user**
> create_user (body: USER )
> create_user (user: USER )
Create user
@ -27,7 +27,7 @@ This can only be done by the logged in user.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**USER**](USER.md)| Created user object |
**user** | [**USER**](USER.md)| Created user object |
### Return type
@ -40,24 +40,22 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
# **create_users_with_array_input**
> create_users_with_array_input (body: LIST [USER] )
> create_users_with_array_input (user: LIST [USER] )
Creates list of users with given input array
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**LIST [USER]**](User.md)| List of user object |
**user** | [**LIST [USER]**](LIST.md)| List of user object |
### Return type
@ -70,24 +68,22 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
# **create_users_with_list_input**
> create_users_with_list_input (body: LIST [USER] )
> create_users_with_list_input (user: LIST [USER] )
Creates list of users with given input array
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**LIST [USER]**](User.md)| List of user object |
**user** | [**LIST [USER]**](LIST.md)| List of user object |
### Return type
@ -100,7 +96,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
@ -130,7 +126,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
@ -141,8 +137,6 @@ No authorization required
Logs user into the system
### Parameters
Name | Type | Description | Notes
@ -172,8 +166,6 @@ No authorization required
Logs out current logged in user session
### Parameters
This endpoint does not need any parameter.
@ -188,12 +180,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
# **update_user**
> update_user (username: STRING_32 ; body: USER )
> update_user (username: STRING_32 ; user: USER )
Updated user
@ -206,7 +198,7 @@ This can only be done by the logged in user.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **STRING_32**| name that need to be deleted |
**body** | [**USER**](USER.md)| Updated user object |
**user** | [**USER**](USER.md)| Updated user object |
### Return type
@ -219,7 +211,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **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)
@ -230,13 +222,11 @@ No authorization required
Get user by user name
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **STRING_32**| The name that needs to be fetched. Use user1 for testing. |
**username** | **STRING_32**| The name that needs to be fetched. Use user1 for testing. |
### Return type

View File

@ -0,0 +1,63 @@
note
description:"[
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
]"
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class
ANOTHERFAKE_API
inherit
API_I
feature -- API Access
test_special_tags (client: CLIENT): detachable CLIENT
-- To test special tags
-- To test special tags
--
-- argument: client client model (required)
--
--
-- Result CLIENT
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(client)
l_path := "/another-fake/dummy"
if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_response := api_client.call_api (l_path, "Patch", l_request, Void, agent deserializer)
if l_response.has_error then
last_error := l_response.error
elseif attached { CLIENT } l_response.data ({ CLIENT }) as l_data then
Result := l_data
else
create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]")
end
end
end

View File

@ -24,14 +24,15 @@ inherit
feature -- API Access
fake_outer_boolean_serialize (body: detachable OUTER_BOOLEAN): detachable OUTER_BOOLEAN
fake_outer_boolean_serialize (body: BOOLEAN): detachable BOOLEAN
--
-- Test serialization of outer boolean types
--
-- argument: body Input boolean as post body (optional)
--
--
-- Result OUTER_BOOLEAN
-- Result BOOLEAN
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -42,7 +43,8 @@ feature -- API Access
l_request.set_body(body)
l_path := "/fake/outer/boolean"
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -50,21 +52,22 @@ feature -- API Access
l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer)
if l_response.has_error then
last_error := l_response.error
elseif attached { OUTER_BOOLEAN } l_response.data ({ OUTER_BOOLEAN }) as l_data then
elseif attached { BOOLEAN } l_response.data ({ BOOLEAN }) as l_data then
Result := l_data
else
create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]")
end
end
fake_outer_composite_serialize (body: detachable OUTER_COMPOSITE): detachable OUTER_COMPOSITE
fake_outer_composite_serialize (outer_composite: detachable OUTER_COMPOSITE): detachable OUTER_COMPOSITE
--
-- Test serialization of object with outer number type
--
-- argument: body Input composite as post body (optional)
-- argument: outer_composite Input composite as post body (optional)
--
--
-- Result OUTER_COMPOSITE
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -72,10 +75,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(outer_composite)
l_path := "/fake/outer/composite"
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -90,14 +94,15 @@ feature -- API Access
end
end
fake_outer_number_serialize (body: detachable OUTER_NUMBER): detachable OUTER_NUMBER
fake_outer_number_serialize (body: REAL_32): detachable REAL_32
--
-- Test serialization of outer number types
--
-- argument: body Input number as post body (optional)
--
--
-- Result OUTER_NUMBER
-- Result REAL_32
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -108,7 +113,8 @@ feature -- API Access
l_request.set_body(body)
l_path := "/fake/outer/number"
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -116,21 +122,22 @@ feature -- API Access
l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer)
if l_response.has_error then
last_error := l_response.error
elseif attached { OUTER_NUMBER } l_response.data ({ OUTER_NUMBER }) as l_data then
elseif attached { REAL_32 } l_response.data ({ REAL_32 }) as l_data then
Result := l_data
else
create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]")
end
end
fake_outer_string_serialize (body: detachable OUTER_STRING): detachable OUTER_STRING
fake_outer_string_serialize (body: STRING_32): detachable STRING_32
--
-- Test serialization of outer string types
--
-- argument: body Input string as post body (optional)
--
--
-- Result OUTER_STRING
-- Result STRING_32
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -141,7 +148,8 @@ feature -- API Access
l_request.set_body(body)
l_path := "/fake/outer/string"
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -149,21 +157,23 @@ feature -- API Access
l_response := api_client.call_api (l_path, "Post", l_request, Void, agent deserializer)
if l_response.has_error then
last_error := l_response.error
elseif attached { OUTER_STRING } l_response.data ({ OUTER_STRING }) as l_data then
elseif attached { STRING_32 } l_response.data ({ STRING_32 }) as l_data then
Result := l_data
else
create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]")
end
end
test_client_model (body: CLIENT): detachable CLIENT
-- To test \&quot;client\&quot; model
-- To test \&quot;client\&quot; model
--
-- argument: body client model (required)
test_body_with_query_params (query: STRING_32; user: USER)
--
--
-- Result CLIENT
--
-- argument: query (required)
--
-- argument: user (required)
--
--
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -171,9 +181,42 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(user)
l_path := "/fake/body-with-query-params"
l_request.fill_query_params(api_client.parameter_to_tuple("", "query", query));
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_response := api_client.call_api (l_path, "Put", l_request, agent serializer, Void)
if l_response.has_error then
last_error := l_response.error
end
end
test_client_model (client: CLIENT): detachable CLIENT
-- To test \&quot;client\&quot; model
-- To test \&quot;client\&quot; model
--
-- argument: client client model (required)
--
--
-- Result CLIENT
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(client)
l_path := "/fake"
if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
@ -189,7 +232,7 @@ feature -- API Access
end
end
test_endpoint_parameters (number: REAL_32; double: REAL_64; pattern_without_delimiter: STRING_32; byte: ARRAY [NATURAL_8]; integer: detachable INTEGER_32; int32: detachable INTEGER_32; int64: detachable INTEGER_64; float: detachable REAL_32; string: detachable STRING_32; binary: detachable STRING_32; date: detachable DATE; date_time: detachable DATE_TIME; password: detachable STRING_32; callback: detachable STRING_32)
test_endpoint_parameters (number: REAL_32; double: REAL_64; pattern_without_delimiter: STRING_32; byte: ARRAY [NATURAL_8]; integer: INTEGER_32; int32: INTEGER_32; int64: INTEGER_64; float: REAL_32; string: STRING_32; binary: FILE; date: DATE; date_time: DATE_TIME; password: STRING_32; callback: STRING_32)
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
--
@ -222,6 +265,16 @@ feature -- API Access
-- argument: callback None (optional)
--
--
require
number_is_less_or_equal_than: number <= 543.2
number_is_greater_or_equal_than: number >= 32.1
double_is_less_or_equal_than: double <= 123.4
double_is_greater_or_equal_than: double >= 67.8
integer_is_less_or_equal_than: integer <= 100
integer_is_greater_or_equal_than: integer >= 10
int32_is_less_or_equal_than: int32 <= 200
int32_is_greater_or_equal_than: int32 >= 20
float_is_less_or_equal_than: float <= 987.6
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -231,6 +284,7 @@ feature -- API Access
create l_request
l_path := "/fake"
if attached integer as l_integer then
l_request.add_form(l_integer,"integer");
end
@ -274,10 +328,10 @@ feature -- API Access
l_request.add_form(l_callback,"callback");
end
if attached {STRING} api_client.select_header_accept (<<"application/xml; charset=utf-8", "application/json; charset=utf-8">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/xml; charset=utf-8", "application/json; charset=utf-8">>),"Content-Type")
l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type")
l_request.set_auth_names (<<"http_basic_test">>)
l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void)
if l_response.has_error then
@ -285,14 +339,10 @@ feature -- API Access
end
end
test_enum_parameters (enum_form_string_array: detachable LIST [STRING_32]; enum_form_string: detachable STRING_32; enum_header_string_array: detachable LIST [STRING_32]; enum_header_string: detachable STRING_32; enum_query_string_array: detachable LIST [STRING_32]; enum_query_string: detachable STRING_32; enum_query_integer: detachable INTEGER_32; enum_query_double: detachable REAL_64)
test_enum_parameters (enum_header_string_array: detachable LIST [STRING_32]; enum_header_string: STRING_32; enum_query_string_array: detachable LIST [STRING_32]; enum_query_string: STRING_32; enum_query_integer: INTEGER_32; enum_query_double: REAL_64; enum_form_string_array: detachable LIST [STRING_32]; enum_form_string: STRING_32)
-- To test enum parameters
-- To test enum parameters
--
-- argument: enum_form_string_array Form parameter enum test (string array) (optional)
--
-- argument: enum_form_string Form parameter enum test (string) (optional, default to -efg)
--
-- argument: enum_header_string_array Header parameter enum test (string array) (optional)
--
-- argument: enum_header_string Header parameter enum test (string) (optional, default to -efg)
@ -305,7 +355,12 @@ feature -- API Access
--
-- argument: enum_query_double Query parameter enum test (double) (optional)
--
-- argument: enum_form_string_array Form parameter enum test (string array) (optional)
--
-- argument: enum_form_string Form parameter enum test (string) (optional)
--
--
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -318,6 +373,8 @@ feature -- API Access
l_request.fill_query_params(api_client.parameter_to_tuple("csv", "enum_query_string_array", enum_query_string_array));
l_request.fill_query_params(api_client.parameter_to_tuple("", "enum_query_string", enum_query_string));
l_request.fill_query_params(api_client.parameter_to_tuple("", "enum_query_integer", enum_query_integer));
l_request.fill_query_params(api_client.parameter_to_tuple("", "enum_query_double", enum_query_double));
if attached enum_header_string_array as l_enum_header_string_array then
l_request.add_header(l_enum_header_string_array.out,"enum_header_string_array");
end
@ -330,14 +387,11 @@ feature -- API Access
if attached enum_form_string as l_enum_form_string then
l_request.add_form(l_enum_form_string,"enum_form_string");
end
if attached enum_query_double as l_enum_query_double then
l_request.add_form(l_enum_query_double,"enum_query_double");
end
if attached {STRING} api_client.select_header_accept (<<"*/*">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"*/*">>),"Content-Type")
l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_response := api_client.call_api (l_path, "Get", l_request, agent serializer, Void)
if l_response.has_error then
@ -345,6 +399,36 @@ feature -- API Access
end
end
test_inline_additional_properties (request_body: STRING_32)
-- test inline additionalProperties
--
--
-- argument: request_body request body (required)
--
--
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(request_body)
l_path := "/fake/inline-additionalProperties"
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_response := api_client.call_api (l_path, "Post", l_request, agent serializer, Void)
if l_response.has_error then
last_error := l_response.error
end
end
test_json_form_data (param: STRING_32; param2: STRING_32)
-- test json serialization of form data
--
@ -354,6 +438,7 @@ feature -- API Access
-- argument: param2 field2 (required)
--
--
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -363,6 +448,7 @@ feature -- API Access
create l_request
l_path := "/fake/jsonFormData"
if attached param as l_param then
l_request.add_form(l_param,"param");
end
@ -373,7 +459,7 @@ feature -- API Access
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type")
l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_response := api_client.call_api (l_path, "Get", l_request, agent serializer, Void)
if l_response.has_error then

View File

@ -14,7 +14,7 @@ note
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class
FAKE_CLASSNAME_TAGS123_API
FAKECLASSNAMETAGS123_API
inherit
@ -24,14 +24,15 @@ inherit
feature -- API Access
test_classname (body: CLIENT): detachable CLIENT
test_classname (client: CLIENT): detachable CLIENT
-- To test class name in snake case
-- To test class name in snake case
--
--
-- argument: body client model (required)
-- argument: client client model (required)
--
--
-- Result CLIENT
require
local
l_path: STRING
l_request: API_CLIENT_REQUEST
@ -39,14 +40,15 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(client)
l_path := "/fake_classname_test"
if attached {STRING} api_client.select_header_accept (<<"application/json">>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json">>),"Content-Type")
l_request.set_auth_names (<<>>)
l_request.set_auth_names (<<"api_key_query">>)
l_response := api_client.call_api (l_path, "Patch", l_request, Void, agent deserializer)
if l_response.has_error then
last_error := l_response.error

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
@ -24,11 +24,11 @@ inherit
feature -- API Access
add_pet (body: PET)
add_pet (pet: PET)
-- Add a new pet to the store
--
--
-- argument: body Pet object that needs to be added to the store (required)
-- argument: pet Pet object that needs to be added to the store (required)
--
--
require
@ -39,11 +39,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(pet)
l_path := "/pet"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json", "application/xml">>),"Content-Type")
@ -79,7 +79,7 @@ feature -- API Access
l_request.add_header(l_api_key.out,"api_key");
end
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -198,11 +198,11 @@ feature -- API Access
end
end
update_pet (body: PET)
update_pet (pet: PET)
-- Update an existing pet
--
--
-- argument: body Pet object that needs to be added to the store (required)
-- argument: pet Pet object that needs to be added to the store (required)
--
--
require
@ -213,11 +213,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(pet)
l_path := "/pet"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/json", "application/xml">>),"Content-Type")
@ -258,7 +258,7 @@ feature -- API Access
l_request.add_form(l_status,"status");
end
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"application/x-www-form-urlencoded">>),"Content-Type")
@ -269,7 +269,7 @@ feature -- API Access
end
end
upload_file (pet_id: INTEGER_64; additional_metadata: STRING_32; file: detachable FILE): detachable API_RESPONSE
upload_file (pet_id: INTEGER_64; additional_metadata: STRING_32; file: FILE): detachable API_RESPONSE
-- uploads an image
--
--

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
@ -40,11 +40,11 @@ feature -- API Access
reset_error
create l_request
l_path := "/store/order/{orderId}"
l_path.replace_substring_all ("{"+"orderId"+"}", api_client.url_encode (order_id.out))
l_path := "/store/order/{order_id}"
l_path.replace_substring_all ("{"+"order_id"+"}", api_client.url_encode (order_id.out))
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -107,8 +107,8 @@ feature -- API Access
reset_error
create l_request
l_path := "/store/order/{orderId}"
l_path.replace_substring_all ("{"+"orderId"+"}", api_client.url_encode (order_id.out))
l_path := "/store/order/{order_id}"
l_path.replace_substring_all ("{"+"order_id"+"}", api_client.url_encode (order_id.out))
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
@ -126,11 +126,11 @@ feature -- API Access
end
end
place_order (body: ORDER): detachable ORDER
place_order (order: ORDER): detachable ORDER
-- Place an order for a pet
--
--
-- argument: body order placed for purchasing the pet (required)
-- argument: order order placed for purchasing the pet (required)
--
--
-- Result ORDER
@ -142,7 +142,7 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(order)
l_path := "/store/order"

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
@ -24,11 +24,11 @@ inherit
feature -- API Access
create_user (body: USER)
create_user (user: USER)
-- Create user
-- This can only be done by the logged in user.
--
-- argument: body Created user object (required)
-- argument: user Created user object (required)
--
--
require
@ -39,11 +39,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(user)
l_path := "/user"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -54,11 +54,11 @@ feature -- API Access
end
end
create_users_with_array_input (body: LIST [USER])
create_users_with_array_input (user: LIST [USER])
-- Creates list of users with given input array
--
--
-- argument: body List of user object (required)
-- argument: user List of user object (required)
--
--
require
@ -69,11 +69,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(user)
l_path := "/user/createWithArray"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -84,11 +84,11 @@ feature -- API Access
end
end
create_users_with_list_input (body: LIST [USER])
create_users_with_list_input (user: LIST [USER])
-- Creates list of users with given input array
--
--
-- argument: body List of user object (required)
-- argument: user List of user object (required)
--
--
require
@ -99,11 +99,11 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(user)
l_path := "/user/createWithList"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -134,7 +134,7 @@ feature -- API Access
l_path.replace_substring_all ("{"+"username"+"}", api_client.url_encode (username.out))
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -201,7 +201,7 @@ feature -- API Access
l_path := "/user/logout"
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -212,13 +212,13 @@ feature -- API Access
end
end
update_user (username: STRING_32; body: USER)
update_user (username: STRING_32; user: USER)
-- Updated user
-- This can only be done by the logged in user.
--
-- argument: username name that need to be deleted (required)
--
-- argument: body Updated user object (required)
-- argument: user Updated user object (required)
--
--
require
@ -229,12 +229,12 @@ feature -- API Access
do
reset_error
create l_request
l_request.set_body(body)
l_request.set_body(user)
l_path := "/user/{username}"
l_path.replace_substring_all ("{"+"username"+"}", api_client.url_encode (username.out))
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
if attached {STRING} api_client.select_header_accept (<<>>) as l_accept then
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<>>),"Content-Type")
@ -249,7 +249,7 @@ feature -- API Access
-- Get user by user name
--
--
-- argument: username The name that needs to be fetched. Use user1 for testing. (required)
-- argument: username The name that needs to be fetched. Use user1 for testing. (required)
--
--
-- Result USER

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
@ -31,14 +31,18 @@ feature {NONE} -- Initialization
create authentications.make (3)
authentications.force (create {API_KEY_AUTH}.make ("header", "api_key"), "api_key")
is_api_key_configured := True
is_api_key_configured := True
authentications.force (create {API_KEY_AUTH}.make ("query", "api_key_query"), "api_key_query")
is_api_key_configured := True
authentications.force (create {HTTP_BASIC_AUTH}, "http_basic_test")
is_basic_auth_configured := True
authentications.force (create {OAUTH},"petstore_auth")
is_oauth_configured := True
end
feature -- Access
default_base_path: STRING = "http://petstore.swagger.io/v2"
default_base_path: STRING = "http://petstore.swagger.io:80/v2"
-- default base path.
base_path: STRING

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ADDITIONAL_PROPERTIES_CLASS
inherit
@ -57,6 +56,7 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass ADDITIONAL_PROPERTIES_CLASS%N")
if attached map_property as l_map_property then
Result.append ("%Nmap_property:")
across l_map_property as ic loop
Result.append ("%N")
Result.append ("key:")
@ -68,6 +68,7 @@ feature -- Change Element
end
end
if attached map_of_map_property as l_map_of_map_property then
Result.append ("%Nmap_of_map_property:")
across l_map_of_map_property as ic loop
Result.append ("%N")
Result.append ("key:")
@ -80,3 +81,5 @@ feature -- Change Element
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ANIMAL
inherit
@ -57,14 +56,16 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass ANIMAL%N")
if attached class_name as l_class_name then
Result.append ("%N")
Result.append ("%Nclass_name:")
Result.append (l_class_name.out)
Result.append ("%N")
end
if attached color as l_color then
Result.append ("%N")
Result.append ("%Ncolor:")
Result.append (l_color.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ANIMAL_FARM
inherit
@ -26,7 +25,12 @@ inherit
ARRAYED_LIST [ANIMAL]
rename
out as out_
out as out_,
is_equal as is_equal_,
copy as copy_
select
is_equal_,
copy_
end
feature --Access
@ -45,3 +49,5 @@ feature -- Change Element
Result.append("%Nclass ANIMAL_FARM%N")
end
end

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ARRAY_OF_ARRAY_OF_NUMBER_ONLY
inherit
@ -48,10 +47,12 @@ feature -- Change Element
Result.append("%Nclass ARRAY_OF_ARRAY_OF_NUMBER_ONLY%N")
if attached array_array_number as l_array_array_number then
across l_array_array_number as ic loop
Result.append ("%N")
Result.append ("%N array_array_number:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ARRAY_OF_NUMBER_ONLY
inherit
@ -48,10 +47,12 @@ feature -- Change Element
Result.append("%Nclass ARRAY_OF_NUMBER_ONLY%N")
if attached array_number as l_array_number then
across l_array_number as ic loop
Result.append ("%N")
Result.append ("%N array_number:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ARRAY_TEST
inherit
@ -68,24 +67,26 @@ feature -- Change Element
Result.append("%Nclass ARRAY_TEST%N")
if attached array_of_string as l_array_of_string then
across l_array_of_string as ic loop
Result.append ("%N")
Result.append ("%N array_of_string:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
if attached array_array_of_integer as l_array_array_of_integer then
across l_array_array_of_integer as ic loop
Result.append ("%N")
Result.append ("%N array_array_of_integer:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
if attached array_array_of_model as l_array_array_of_model then
across l_array_array_of_model as ic loop
Result.append ("%N")
Result.append ("%N array_array_of_model:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class CAPITALIZATION
inherit
@ -97,34 +96,36 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass CAPITALIZATION%N")
if attached small_camel as l_small_camel then
Result.append ("%N")
Result.append ("%Nsmall_camel:")
Result.append (l_small_camel.out)
Result.append ("%N")
end
if attached capital_camel as l_capital_camel then
Result.append ("%N")
Result.append ("%Ncapital_camel:")
Result.append (l_capital_camel.out)
Result.append ("%N")
end
if attached small__snake as l_small__snake then
Result.append ("%N")
Result.append ("%Nsmall__snake:")
Result.append (l_small__snake.out)
Result.append ("%N")
end
if attached capital__snake as l_capital__snake then
Result.append ("%N")
Result.append ("%Ncapital__snake:")
Result.append (l_capital__snake.out)
Result.append ("%N")
end
if attached s_ca__et_h__flow__points as l_s_ca__et_h__flow__points then
Result.append ("%N")
Result.append ("%Ns_ca__et_h__flow__points:")
Result.append (l_s_ca__et_h__flow__points.out)
Result.append ("%N")
end
if attached ATT_NAME as l_ATT_NAME then
Result.append ("%N")
Result.append ("%NATT_NAME:")
Result.append (l_ATT_NAME.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class CAT
inherit
@ -26,7 +25,12 @@ inherit
ANIMAL
rename
out as out_animal
out as out_animal,
is_equal as is_equal_animal,
copy as copy_animal
select
is_equal_animal,
copy_animal
end
feature --Access
@ -54,9 +58,11 @@ feature -- Change Element
Result.append(out_animal)
Result.append("%Nclass CAT%N")
if attached declawed as l_declawed then
Result.append ("%N")
Result.append ("%Ndeclawed:")
Result.append (l_declawed.out)
Result.append ("%N")
end
end
end

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class CLASS_MODEL
inherit
@ -47,9 +46,11 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass CLASS_MODEL%N")
if attached var_class as l_var_class then
Result.append ("%N")
Result.append ("%Nvar_class:")
Result.append (l_var_class.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class CLIENT
inherit
@ -47,9 +46,11 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass CLIENT%N")
if attached client as l_client then
Result.append ("%N")
Result.append ("%Nclient:")
Result.append (l_client.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class DOG
inherit
@ -26,7 +25,12 @@ inherit
ANIMAL
rename
out as out_animal
out as out_animal,
is_equal as is_equal_animal,
copy as copy_animal
select
is_equal_animal,
copy_animal
end
feature --Access
@ -54,9 +58,11 @@ feature -- Change Element
Result.append(out_animal)
Result.append("%Nclass DOG%N")
if attached breed as l_breed then
Result.append ("%N")
Result.append ("%Nbreed:")
Result.append (l_breed.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ENUM_ARRAYS
inherit
@ -27,7 +26,7 @@ feature --Access
just_symbol: detachable STRING_32
array_enum: detachable LIST [Array_enumEnum]
array_enum: detachable LIST [STRING_32]
feature -- Change Element
@ -57,16 +56,18 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass ENUM_ARRAYS%N")
if attached just_symbol as l_just_symbol then
Result.append ("%N")
Result.append ("%Njust_symbol:")
Result.append (l_just_symbol.out)
Result.append ("%N")
end
if attached array_enum as l_array_enum then
across l_array_enum as ic loop
Result.append ("%N")
Result.append ("%N array_enum:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -12,29 +12,49 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ENUM_CLASS
class ENUM_CLASS
feature -- Access
inherit
value: detachable STRING_32
-- enumerated value.
note
option: stable
attribute
end
ANY
redefine
out
end
feature -- Enum
val_abc: ENUM_CLASS
once
create Result
Result.set_value ("_abc")
end
val_efg: ENUM_CLASS
once
create Result
Result.set_value ("-efg")
end
val_xyz_: ENUM_CLASS
once
create Result
Result.set_value ("(xyz)")
end
feature --Access
feature -- Element Change
set_value (a_val: like value)
-- Set `value' with `a_value'.
do
value := a_val
ensure
value_set: value = a_val
end
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ENUM_CLASS%N")
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class ENUM_TEST
inherit
@ -27,6 +26,8 @@ feature --Access
enum_string: detachable STRING_32
enum_string_required: detachable STRING_32
enum_integer: INTEGER_32
enum_number: REAL_64
@ -44,6 +45,14 @@ feature -- Change Element
enum_string_set: enum_string = a_name
end
set_enum_string_required (a_name: like enum_string_required)
-- Set 'enum_string_required' with 'a_name'.
do
enum_string_required := a_name
ensure
enum_string_required_set: enum_string_required = a_name
end
set_enum_integer (a_name: like enum_integer)
-- Set 'enum_integer' with 'a_name'.
do
@ -77,24 +86,31 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass ENUM_TEST%N")
if attached enum_string as l_enum_string then
Result.append ("%N")
Result.append ("%Nenum_string:")
Result.append (l_enum_string.out)
Result.append ("%N")
end
if attached enum_string_required as l_enum_string_required then
Result.append ("%Nenum_string_required:")
Result.append (l_enum_string_required.out)
Result.append ("%N")
end
if attached enum_integer as l_enum_integer then
Result.append ("%N")
Result.append ("%Nenum_integer:")
Result.append (l_enum_integer.out)
Result.append ("%N")
end
if attached enum_number as l_enum_number then
Result.append ("%N")
Result.append ("%Nenum_number:")
Result.append (l_enum_number.out)
Result.append ("%N")
end
if attached outer_enum as l_outer_enum then
Result.append ("%N")
Result.append ("%Nouter_enum:")
Result.append (l_outer_enum.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class FORMAT_TEST
inherit
@ -41,7 +40,7 @@ feature --Access
byte: detachable ARRAY [NATURAL_8]
binary: detachable STRING_32
binary: detachable FILE
date: detachable DATE
@ -167,69 +166,71 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass FORMAT_TEST%N")
if attached integer as l_integer then
Result.append ("%N")
Result.append ("%Ninteger:")
Result.append (l_integer.out)
Result.append ("%N")
end
if attached int32 as l_int32 then
Result.append ("%N")
Result.append ("%Nint32:")
Result.append (l_int32.out)
Result.append ("%N")
end
if attached int64 as l_int64 then
Result.append ("%N")
Result.append ("%Nint64:")
Result.append (l_int64.out)
Result.append ("%N")
end
if attached number as l_number then
Result.append ("%N")
Result.append ("%Nnumber:")
Result.append (l_number.out)
Result.append ("%N")
end
if attached float as l_float then
Result.append ("%N")
Result.append ("%Nfloat:")
Result.append (l_float.out)
Result.append ("%N")
end
if attached double as l_double then
Result.append ("%N")
Result.append ("%Ndouble:")
Result.append (l_double.out)
Result.append ("%N")
end
if attached string as l_string then
Result.append ("%N")
Result.append ("%Nstring:")
Result.append (l_string.out)
Result.append ("%N")
end
if attached byte as l_byte then
Result.append ("%N")
Result.append ("%Nbyte:")
Result.append (l_byte.out)
Result.append ("%N")
end
if attached binary as l_binary then
Result.append ("%N")
Result.append ("%Nbinary:")
Result.append (l_binary.out)
Result.append ("%N")
end
if attached date as l_date then
Result.append ("%N")
Result.append ("%Ndate:")
Result.append (l_date.out)
Result.append ("%N")
end
if attached date_time as l_date_time then
Result.append ("%N")
Result.append ("%Ndate_time:")
Result.append (l_date_time.out)
Result.append ("%N")
end
if attached uuid as l_uuid then
Result.append ("%N")
Result.append ("%Nuuid:")
Result.append (l_uuid.out)
Result.append ("%N")
end
if attached password as l_password then
Result.append ("%N")
Result.append ("%Npassword:")
Result.append (l_password.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class HAS_ONLY_READ_ONLY
inherit
@ -57,14 +56,16 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass HAS_ONLY_READ_ONLY%N")
if attached bar as l_bar then
Result.append ("%N")
Result.append ("%Nbar:")
Result.append (l_bar.out)
Result.append ("%N")
end
if attached foo as l_foo then
Result.append ("%N")
Result.append ("%Nfoo:")
Result.append (l_foo.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class MAP_TEST
inherit
@ -57,6 +56,7 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass MAP_TEST%N")
if attached map_map_of_string as l_map_map_of_string then
Result.append ("%Nmap_map_of_string:")
across l_map_map_of_string as ic loop
Result.append ("%N")
Result.append ("key:")
@ -68,6 +68,7 @@ feature -- Change Element
end
end
if attached map_of_enum_string as l_map_of_enum_string then
Result.append ("%Nmap_of_enum_string:")
across l_map_of_enum_string as ic loop
Result.append ("%N")
Result.append ("key:")
@ -80,3 +81,5 @@ feature -- Change Element
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS
inherit
@ -67,16 +66,17 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS%N")
if attached uuid as l_uuid then
Result.append ("%N")
Result.append ("%Nuuid:")
Result.append (l_uuid.out)
Result.append ("%N")
end
if attached date_time as l_date_time then
Result.append ("%N")
Result.append ("%Ndate_time:")
Result.append (l_date_time.out)
Result.append ("%N")
end
if attached map as l_map then
Result.append ("%Nmap:")
across l_map as ic loop
Result.append ("%N")
Result.append ("key:")
@ -89,3 +89,5 @@ feature -- Change Element
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class MODEL_200_RESPONSE
inherit
@ -57,14 +56,16 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass MODEL_200_RESPONSE%N")
if attached name as l_name then
Result.append ("%N")
Result.append ("%Nname:")
Result.append (l_name.out)
Result.append ("%N")
end
if attached var_class as l_var_class then
Result.append ("%N")
Result.append ("%Nvar_class:")
Result.append (l_var_class.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class NAME
inherit
@ -77,24 +76,26 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass NAME%N")
if attached name as l_name then
Result.append ("%N")
Result.append ("%Nname:")
Result.append (l_name.out)
Result.append ("%N")
end
if attached snake_case as l_snake_case then
Result.append ("%N")
Result.append ("%Nsnake_case:")
Result.append (l_snake_case.out)
Result.append ("%N")
end
if attached property as l_property then
Result.append ("%N")
Result.append ("%Nproperty:")
Result.append (l_property.out)
Result.append ("%N")
end
if attached var_123_number as l_var_123_number then
Result.append ("%N")
Result.append ("%Nvar_123_number:")
Result.append (l_var_123_number.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class NUMBER_ONLY
inherit
@ -47,9 +46,11 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass NUMBER_ONLY%N")
if attached just_number as l_just_number then
Result.append ("%N")
Result.append ("%Njust_number:")
Result.append (l_just_number.out)
Result.append ("%N")
end
end
end

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class OUTER_COMPOSITE
inherit
@ -25,11 +24,11 @@ inherit
feature --Access
my_number: detachable OUTER_NUMBER
my_number: REAL_32
my_string: detachable OUTER_STRING
my_string: detachable STRING_32
my_boolean: detachable OUTER_BOOLEAN
my_boolean: BOOLEAN
feature -- Change Element
@ -67,19 +66,21 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass OUTER_COMPOSITE%N")
if attached my_number as l_my_number then
Result.append ("%N")
Result.append ("%Nmy_number:")
Result.append (l_my_number.out)
Result.append ("%N")
end
if attached my_string as l_my_string then
Result.append ("%N")
Result.append ("%Nmy_string:")
Result.append (l_my_string.out)
Result.append ("%N")
end
if attached my_boolean as l_my_boolean then
Result.append ("%N")
Result.append ("%Nmy_boolean:")
Result.append (l_my_boolean.out)
Result.append ("%N")
end
end
end

View File

@ -12,29 +12,49 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class OUTER_ENUM
class OUTER_ENUM
feature -- Access
inherit
value: detachable STRING_32
-- enumerated value.
note
option: stable
attribute
end
ANY
redefine
out
end
feature -- Enum
val_placed: OUTER_ENUM
once
create Result
Result.set_value ("placed")
end
val_approved: OUTER_ENUM
once
create Result
Result.set_value ("approved")
end
val_delivered: OUTER_ENUM
once
create Result
Result.set_value ("delivered")
end
feature --Access
feature -- Element Change
set_value (a_val: like value)
-- Set `value' with `a_value'.
do
value := a_val
ensure
value_set: value = a_val
end
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_ENUM%N")
end
end

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class READ_ONLY_FIRST
inherit
@ -57,14 +56,16 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass READ_ONLY_FIRST%N")
if attached bar as l_bar then
Result.append ("%N")
Result.append ("%Nbar:")
Result.append (l_bar.out)
Result.append ("%N")
end
if attached baz as l_baz then
Result.append ("%N")
Result.append ("%Nbaz:")
Result.append (l_baz.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class RETURN
inherit
@ -47,9 +46,11 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass RETURN%N")
if attached return as l_return then
Result.append ("%N")
Result.append ("%Nreturn:")
Result.append (l_return.out)
Result.append ("%N")
end
end
end

View File

@ -12,7 +12,6 @@ note
date: "$Date$"
revision: "$Revision$"
EIS:"Eiffel swagger codegen", "src=https://github.com/swagger-api/swagger-codegen.git", "protocol=uri"
class SPECIAL_MODEL_NAME
inherit
@ -47,9 +46,11 @@ feature -- Change Element
create Result.make_empty
Result.append("%Nclass SPECIAL_MODEL_NAME%N")
if attached special_property_name as l_special_property_name then
Result.append ("%N")
Result.append ("%Nspecial_property_name:")
Result.append (l_special_property_name.out)
Result.append ("%N")
end
end
end

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,7 +1,7 @@
note
description:"[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="test" uuid="ec47481a-42b3-4117-89a8-ccdc0ce2bdb5">
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="test" uuid="3cf2b389-59f2-44e3-ac08-8e56b2d443a0">
<target name="test">
<root feature="make" class="APPLICATION"/>
<file_rule>

View File

@ -0,0 +1,39 @@
note
description: "API tests for ANOTHERFAKE_API"
date: "$Date$"
revision: "$Revision$"
class ANOTHERFAKE_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_test_special_tags
-- To test special tags
--
-- To test special tags
local
l_response: CLIENT
l_client: CLIENT
do
-- TODO: Initialize required params.
-- l_client
-- l_response := api.test_special_tags(l_client)
assert ("not_implemented", False)
end
feature {NONE} -- Implementation
api: ANOTHERFAKE_API
-- Create an object instance of `ANOTHERFAKE_API'.
once
create { ANOTHERFAKE_API } Result
end
end

View File

@ -0,0 +1,39 @@
note
description: "API tests for FAKECLASSNAMETAGS123_API"
date: "$Date$"
revision: "$Revision$"
class FAKECLASSNAMETAGS123_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_test_classname
-- To test class name in snake case
--
-- To test class name in snake case
local
l_response: CLIENT
l_client: CLIENT
do
-- TODO: Initialize required params.
-- l_client
-- l_response := api.test_classname(l_client)
assert ("not_implemented", False)
end
feature {NONE} -- Implementation
api: FAKECLASSNAMETAGS123_API
-- Create an object instance of `FAKECLASSNAMETAGS123_API'.
once
create { FAKECLASSNAMETAGS123_API } Result
end
end