update eiffel petstore

This commit is contained in:
wing328 2017-07-25 00:03:15 +08:00
parent 007fc46b6a
commit 64658f0bea
96 changed files with 3537 additions and 81 deletions

View File

@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/eiffel -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l eiffel -o samples/client/petstore/eiffel/"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l eiffel -o samples/client/petstore/eiffel/"
java $JAVA_OPTS -jar $executable $ags
java $JAVA_OPTS -jar $executable $ags

View File

@ -1 +1 @@
unset
2.3.0-SNAPSHOT

View File

@ -0,0 +1,20 @@
language: eiffel
before_script:
- export current_dir=$(pwd)
- echo current_dir
- cd ..
- wget https://ftp.eiffel.com/pub/beta/nightly/Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2
- tar -xvf Eiffel_17.11_gpl_100608-linux-x86-64.tar.bz2
- export ISE_EIFFEL=$PWD/Eiffel_17.11
- export ISE_PLATFORM=linux-x86-64
- export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin
- export PATH=$PATH:$ISE_EIFFEL/tools/spec/$ISE_PLATFORM/bin
- cd $current_dir
# safelist
branches:
only:
- master
script: compile_all -ecb -melt -list_failures -clean -options dotnet=false

View File

@ -1,6 +1,6 @@
# 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.
@ -17,40 +17,78 @@ 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
------------ | ------------- | ------------- | -------------
*PET_API* | [**add_pet**](docsPET_API.md#add_pet) | **Post** /pet | Add a new pet to the store
*PET_API* | [**delete_pet**](docsPET_API.md#delete_pet) | **Delete** /pet/{petId} | Deletes a pet
*PET_API* | [**find_pets_by_status**](docsPET_API.md#find_pets_by_status) | **Get** /pet/findByStatus | Finds Pets by status
*PET_API* | [**find_pets_by_tags**](docsPET_API.md#find_pets_by_tags) | **Get** /pet/findByTags | Finds Pets by tags
*PET_API* | [**pet_by_id**](docsPET_API.md#pet_by_id) | **Get** /pet/{petId} | Find pet by ID
*PET_API* | [**update_pet**](docsPET_API.md#update_pet) | **Put** /pet | Update an existing pet
*PET_API* | [**update_pet_with_form**](docsPET_API.md#update_pet_with_form) | **Post** /pet/{petId} | Updates a pet in the store with form data
*PET_API* | [**upload_file**](docsPET_API.md#upload_file) | **Post** /pet/{petId}/uploadImage | uploads an image
*STORE_API* | [**delete_order**](docsSTORE_API.md#delete_order) | **Delete** /store/order/{orderId} | Delete purchase order by ID
*STORE_API* | [**inventory**](docsSTORE_API.md#inventory) | **Get** /store/inventory | Returns pet inventories by status
*STORE_API* | [**order_by_id**](docsSTORE_API.md#order_by_id) | **Get** /store/order/{orderId} | Find purchase order by ID
*STORE_API* | [**place_order**](docsSTORE_API.md#place_order) | **Post** /store/order | Place an order for a pet
*USER_API* | [**create_user**](docsUSER_API.md#create_user) | **Post** /user | Create user
*USER_API* | [**create_users_with_array_input**](docsUSER_API.md#create_users_with_array_input) | **Post** /user/createWithArray | Creates list of users with given input array
*USER_API* | [**create_users_with_list_input**](docsUSER_API.md#create_users_with_list_input) | **Post** /user/createWithList | Creates list of users with given input array
*USER_API* | [**delete_user**](docsUSER_API.md#delete_user) | **Delete** /user/{username} | Delete user
*USER_API* | [**login_user**](docsUSER_API.md#login_user) | **Get** /user/login | Logs user into the system
*USER_API* | [**logout_user**](docsUSER_API.md#logout_user) | **Get** /user/logout | Logs out current logged in user session
*USER_API* | [**update_user**](docsUSER_API.md#update_user) | **Put** /user/{username} | Updated user
*USER_API* | [**user_by_name**](docsUSER_API.md#user_by_name) | **Get** /user/{username} | Get user by user name
*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_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_json_form_data**](docs/FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data
*FAKE_CLASSNAME_TAGS123_API* | [**test_classname**](docs/FAKE_CLASSNAME_TAGS123_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
*PET_API* | [**find_pets_by_tags**](docs/PET_API.md#find_pets_by_tags) | **Get** /pet/findByTags | Finds Pets by tags
*PET_API* | [**pet_by_id**](docs/PET_API.md#pet_by_id) | **Get** /pet/{petId} | Find pet by ID
*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/{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/{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
*USER_API* | [**create_users_with_list_input**](docs/USER_API.md#create_users_with_list_input) | **Post** /user/createWithList | Creates list of users with given input array
*USER_API* | [**delete_user**](docs/USER_API.md#delete_user) | **Delete** /user/{username} | Delete user
*USER_API* | [**login_user**](docs/USER_API.md#login_user) | **Get** /user/login | Logs user into the system
*USER_API* | [**logout_user**](docs/USER_API.md#logout_user) | **Get** /user/logout | Logs out current logged in user session
*USER_API* | [**update_user**](docs/USER_API.md#update_user) | **Put** /user/{username} | Updated user
*USER_API* | [**user_by_name**](docs/USER_API.md#user_by_name) | **Get** /user/{username} | Get user by user name
## Documentation For Models
- [API_RESPONSE](docsAPI_RESPONSE.md)
- [CATEGORY](docsCATEGORY.md)
- [ORDER](docsORDER.md)
- [PET](docsPET.md)
- [TAG](docsTAG.md)
- [USER](docsUSER.md)
- [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)
- [CATEGORY](docs/CATEGORY.md)
- [CLASS_MODEL](docs/CLASS_MODEL.md)
- [CLIENT](docs/CLIENT.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_BOOLEAN](docs/OUTER_BOOLEAN.md)
- [OUTER_COMPOSITE](docs/OUTER_COMPOSITE.md)
- [OUTER_ENUM](docs/OUTER_ENUM.md)
- [OUTER_NUMBER](docs/OUTER_NUMBER.md)
- [OUTER_STRING](docs/OUTER_STRING.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)
- [CAT](docs/CAT.md)
- [DOG](docs/DOG.md)
## Documentation For Authorization
@ -62,11 +100,15 @@ Class | Method | HTTP request | Description
- **API key parameter name**: api_key
- **Location**: HTTP header
## http_basic_test
- **Type**: HTTP basic authentication
## petstore_auth
- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: http://petstore.swagger.io/oauth/dialog
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
- **Scopes**:
- **write:pets**: modify pets in your account
- **read:pets**: read your pets

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="7b477ebc-6e12-4c6e-868b-7d20a623a621" 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="1eca0519-e046-46a8-9a4a-e7b165399022" library_target="swagger_eiffel_client">
<target name="swagger_eiffel_client">
<root all_classes="true"/>
<file_rule>

View File

@ -0,0 +1,11 @@
# ADDITIONAL_PROPERTIES_CLASS
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**map_property** | [**STRING_TABLE[STRING_32]**](STRING_32.md) | | [optional] [default to null]
**map_of_map_property** | [**STRING_TABLE[STRING_TABLE[STRING_32]]**](STRING_TABLE.md) | | [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

@ -0,0 +1,11 @@
# ANIMAL
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**class_name** | [**STRING_32**](STRING_32.md) | | [default to null]
**color** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,9 @@
# ANIMAL_FARM
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -0,0 +1,10 @@
# ARRAY_OF_ARRAY_OF_NUMBER_ONLY
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_array_number** | [**LIST [LIST [REAL_32]]**](LIST.md) | | [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

@ -0,0 +1,10 @@
# ARRAY_OF_NUMBER_ONLY
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_number** | **LIST [REAL_32]** | | [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

@ -0,0 +1,12 @@
# ARRAY_TEST
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_of_string** | [**LIST [STRING_32]**](STRING_32.md) | | [optional] [default to null]
**array_array_of_integer** | [**LIST [LIST [INTEGER_64]]**](LIST.md) | | [optional] [default to null]
**array_array_of_model** | [**LIST [LIST [READ_ONLY_FIRST]]**](LIST.md) | | [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

@ -0,0 +1,15 @@
# CAPITALIZATION
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**small_camel** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**capital_camel** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**small__snake** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**capital__snake** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**s_ca__et_h__flow__points** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**ATT_NAME** | [**STRING_32**](STRING_32.md) | Name of the pet | [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

@ -0,0 +1,12 @@
# CAT
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**class_name** | [**STRING_32**](STRING_32.md) | | [default to null]
**color** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**declawed** | **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

@ -0,0 +1,10 @@
# CLASS_MODEL
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**var_class** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,10 @@
# CLIENT
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**client** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,12 @@
# DOG
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**class_name** | [**STRING_32**](STRING_32.md) | | [default to null]
**color** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**breed** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,11 @@
# ENUM_ARRAYS
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**just_symbol** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**array_enum** | [**LIST [STRING_32]**](STRING_32.md) | | [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

@ -0,0 +1,9 @@
# ENUM_CLASS
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -0,0 +1,13 @@
# ENUM_TEST
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enum_string** | [**STRING_32**](STRING_32.md) | | [optional] [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]
[[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

@ -0,0 +1,277 @@
# FAKE_API
All URIs are relative to *http://petstore.swagger.io:80/v2*
Feature | HTTP request | Description
------------- | ------------- | -------------
[**fake_outer_boolean_serialize**](FAKE_API.md#fake_outer_boolean_serialize) | **Post** /fake/outer/boolean |
[**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_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_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
Test serialization of outer boolean types
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_BOOLEAN**](OUTER_BOOLEAN.md)| Input boolean as post body | [optional]
### Return type
[**OUTER_BOOLEAN**](OuterBoolean.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fake_outer_composite_serialize**
> fake_outer_composite_serialize (body: detachable OUTER_COMPOSITE ): detachable OUTER_COMPOSITE
Test serialization of object with outer number type
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_COMPOSITE**](OUTER_COMPOSITE.md)| Input composite as post body | [optional]
### Return type
[**OUTER_COMPOSITE**](OuterComposite.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fake_outer_number_serialize**
> fake_outer_number_serialize (body: detachable OUTER_NUMBER ): detachable OUTER_NUMBER
Test serialization of outer number types
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_NUMBER**](OUTER_NUMBER.md)| Input number as post body | [optional]
### Return type
[**OUTER_NUMBER**](OuterNumber.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fake_outer_string_serialize**
> fake_outer_string_serialize (body: detachable OUTER_STRING ): detachable OUTER_STRING
Test serialization of outer string types
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**OUTER_STRING**](OUTER_STRING.md)| Input string as post body | [optional]
### Return type
[**OUTER_STRING**](OuterString.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **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
To test \"client\" model
To test \"client\" model
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**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)
# **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 )
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**number** | **REAL_32**| None |
**double** | **REAL_64**| None |
**pattern_without_delimiter** | **STRING_32**| None |
**byte** | **ARRAY [NATURAL_8]**| None |
**integer** | **INTEGER_32**| None | [optional]
**int32** | **INTEGER_32**| None | [optional]
**int64** | **INTEGER_64**| None | [optional]
**float** | **REAL_32**| None | [optional]
**string** | **STRING_32**| None | [optional]
**binary** | **STRING_32**| None | [optional]
**date** | **DATE**| None | [optional]
**date_time** | **DATE_TIME**| None | [optional]
**password** | **STRING_32**| None | [optional]
**callback** | **STRING_32**| None | [optional]
### Return type
{empty response body)
### Authorization
[http_basic_test](../README.md#http_basic_test)
### 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
[[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 )
To test enum parameters
To test enum parameters
### 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]
### Return type
{empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: */*
- **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_json_form_data**
> test_json_form_data (param: STRING_32 ; param2: STRING_32 )
test json serialization of form data
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**param** | **STRING_32**| field1 |
**param2** | **STRING_32**| field2 |
### 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)

View File

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

@ -0,0 +1,22 @@
# FORMAT_TEST
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **INTEGER_32** | | [optional] [default to null]
**int32** | **INTEGER_32** | | [optional] [default to null]
**int64** | **INTEGER_64** | | [optional] [default to null]
**number** | **REAL_32** | | [default to null]
**float** | **REAL_32** | | [optional] [default to null]
**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]
**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]
**password** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,11 @@
# HAS_ONLY_READ_ONLY
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bar** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**foo** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,11 @@
# MAP_TEST
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**map_map_of_string** | [**STRING_TABLE[STRING_TABLE[STRING_32]]**](STRING_TABLE.md) | | [optional] [default to null]
**map_of_enum_string** | [**STRING_TABLE[STRING_32]**](STRING_32.md) | | [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

@ -0,0 +1,12 @@
# MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | [**UUID**](UUID.md) | | [optional] [default to null]
**date_time** | [**DATE_TIME**](DATE_TIME.md) | | [optional] [default to null]
**map** | [**STRING_TABLE[ANIMAL]**](Animal.md) | | [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

@ -0,0 +1,11 @@
# MODEL_200_RESPONSE
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **INTEGER_32** | | [optional] [default to null]
**var_class** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,13 @@
# NAME
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **INTEGER_32** | | [default to null]
**snake_case** | **INTEGER_32** | | [optional] [default to null]
**property** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**var_123_number** | **INTEGER_32** | | [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

@ -0,0 +1,10 @@
# NUMBER_ONLY
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**just_number** | **REAL_32** | | [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

@ -0,0 +1,9 @@
# OUTER_BOOLEAN
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -0,0 +1,12 @@
# OUTER_COMPOSITE
## 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]
[[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

@ -0,0 +1,9 @@
# OUTER_ENUM
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -0,0 +1,9 @@
# OUTER_NUMBER
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -0,0 +1,9 @@
# OUTER_STRING
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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
------------- | ------------- | -------------
@ -111,7 +111,7 @@ Name | Type | Description | Notes
Finds Pets by tags
Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
### Parameters

View File

@ -0,0 +1,11 @@
# READ_ONLY_FIRST
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bar** | [**STRING_32**](STRING_32.md) | | [optional] [default to null]
**baz** | [**STRING_32**](STRING_32.md) | | [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

@ -0,0 +1,10 @@
# RETURN
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**return** | **INTEGER_32** | | [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

@ -0,0 +1,10 @@
# SPECIAL_MODEL_NAME
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**special_property_name** | **INTEGER_64** | | [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,29 +1,29 @@
# 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
# **delete_order**
> delete_order (order_id: INTEGER_64 )
> delete_order (order_id: STRING_32 )
Delete purchase order by ID
For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order_id** | **INTEGER_64**| ID of the order that needs to be deleted |
**order_id** | **STRING_32**| ID of the order that needs to be deleted |
### Return type
@ -73,7 +73,7 @@ This endpoint does not need any parameter.
Find purchase order by ID
For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
### Parameters

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
------------- | ------------- | -------------
@ -205,7 +205,7 @@ This can only be done by the logged in user.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **STRING_32**| name that need to be updated |
**username** | **STRING_32**| name that need to be deleted |
**body** | [**USER**](USER.md)| Updated user object |
### Return type

View File

@ -0,0 +1,385 @@
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
FAKE_API
inherit
API_I
feature -- API Access
fake_outer_boolean_serialize (body: detachable OUTER_BOOLEAN): detachable OUTER_BOOLEAN
--
-- Test serialization of outer boolean types
--
-- argument: body Input boolean as post body (optional)
--
--
-- Result OUTER_BOOLEAN
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
l_path := "/fake/outer/boolean"
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.set_auth_names (<<>>)
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
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
--
-- Test serialization of object with outer number type
--
-- argument: body Input composite as post body (optional)
--
--
-- Result OUTER_COMPOSITE
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
l_path := "/fake/outer/composite"
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.set_auth_names (<<>>)
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_COMPOSITE } l_response.data ({ OUTER_COMPOSITE }) as l_data then
Result := l_data
else
create last_error.make ("Unknown error: Status response [ " + l_response.status.out + "]")
end
end
fake_outer_number_serialize (body: detachable OUTER_NUMBER): detachable OUTER_NUMBER
--
-- Test serialization of outer number types
--
-- argument: body Input number as post body (optional)
--
--
-- Result OUTER_NUMBER
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
l_path := "/fake/outer/number"
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.set_auth_names (<<>>)
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
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
--
-- Test serialization of outer string types
--
-- argument: body Input string as post body (optional)
--
--
-- Result OUTER_STRING
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
l_path := "/fake/outer/string"
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.set_auth_names (<<>>)
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
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)
--
--
-- Result CLIENT
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
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
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
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)
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
--
-- argument: number None (required)
--
-- argument: double None (required)
--
-- argument: pattern_without_delimiter None (required)
--
-- argument: byte None (required)
--
-- argument: integer None (optional)
--
-- argument: int32 None (optional)
--
-- argument: int64 None (optional)
--
-- argument: float None (optional)
--
-- argument: string None (optional)
--
-- argument: binary None (optional)
--
-- argument: date None (optional)
--
-- argument: date_time None (optional)
--
-- argument: password None (optional)
--
-- argument: callback None (optional)
--
--
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_path := "/fake"
if attached integer as l_integer then
l_request.add_form(l_integer,"integer");
end
if attached int32 as l_int32 then
l_request.add_form(l_int32,"int32");
end
if attached int64 as l_int64 then
l_request.add_form(l_int64,"int64");
end
if attached number as l_number then
l_request.add_form(l_number,"number");
end
if attached float as l_float then
l_request.add_form(l_float,"float");
end
if attached double as l_double then
l_request.add_form(l_double,"double");
end
if attached string as l_string then
l_request.add_form(l_string,"string");
end
if attached pattern_without_delimiter as l_pattern_without_delimiter then
l_request.add_form(l_pattern_without_delimiter,"pattern_without_delimiter");
end
if attached byte as l_byte then
l_request.add_form(l_byte,"byte");
end
if attached binary as l_binary then
l_request.add_form(l_binary,"binary");
end
if attached date as l_date then
l_request.add_form(l_date,"date");
end
if attached date_time as l_date_time then
l_request.add_form(l_date_time,"dateTime");
end
if attached password as l_password then
l_request.add_form(l_password,"password");
end
if attached callback as l_callback then
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
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.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
last_error := l_response.error
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)
-- 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)
--
-- argument: enum_query_string_array Query parameter enum test (string array) (optional)
--
-- argument: enum_query_string Query parameter enum test (string) (optional, default to -efg)
--
-- argument: enum_query_integer Query parameter enum test (double) (optional)
--
-- argument: enum_query_double Query parameter enum test (double) (optional)
--
--
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_path := "/fake"
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));
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
if attached enum_header_string as l_enum_header_string then
l_request.add_header(l_enum_header_string.out,"enum_header_string");
end
if attached enum_form_string_array as l_enum_form_string_array then
l_request.add_form(l_enum_form_string_array,"enum_form_string_array");
end
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
l_request.add_header(l_accept,"Accept");
end
l_request.add_header(api_client.select_header_content_type (<<"*/*">>),"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
last_error := l_response.error
end
end
test_json_form_data (param: STRING_32; param2: STRING_32)
-- test json serialization of form data
--
--
-- argument: param field1 (required)
--
-- argument: param2 field2 (required)
--
--
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_path := "/fake/jsonFormData"
if attached param as l_param then
l_request.add_form(l_param,"param");
end
if attached param2 as l_param2 then
l_request.add_form(l_param2,"param2");
end
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, "Get", l_request, agent serializer, Void)
if l_response.has_error then
last_error := l_response.error
end
end
end

View File

@ -0,0 +1,61 @@
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
FAKE_CLASSNAME_TAGS123_API
inherit
API_I
feature -- API Access
test_classname (body: CLIENT): detachable CLIENT
-- To test class name in snake case
--
--
-- argument: body client model (required)
--
--
-- Result CLIENT
local
l_path: STRING
l_request: API_CLIENT_REQUEST
l_response: API_CLIENT_RESPONSE
do
reset_error
create l_request
l_request.set_body(body)
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_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

@ -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
@ -103,7 +103,7 @@ feature -- API Access
create l_request
l_path := "/pet/findByStatus"
l_request.fill_query_params(api_client.parameter_to_tuple("multi", "status", status));
l_request.fill_query_params(api_client.parameter_to_tuple("csv", "status", status));
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
l_request.add_header(l_accept,"Accept");
@ -122,7 +122,7 @@ feature -- API Access
find_pets_by_tags (tags: LIST [STRING_32]): detachable LIST [PET]
-- Finds Pets by tags
-- Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-- Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
--
-- argument: tags Tags to filter by (required)
--
@ -137,7 +137,7 @@ feature -- API Access
create l_request
l_path := "/pet/findByTags"
l_request.fill_query_params(api_client.parameter_to_tuple("multi", "tags", tags));
l_request.fill_query_params(api_client.parameter_to_tuple("csv", "tags", tags));
if attached {STRING} api_client.select_header_accept (<<"application/xml", "application/json">>) as l_accept then
l_request.add_header(l_accept,"Accept");

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,9 +24,9 @@ inherit
feature -- API Access
delete_order (order_id: INTEGER_64)
delete_order (order_id: STRING_32)
-- Delete purchase order by ID
-- For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors
-- For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
--
-- argument: order_id ID of the order that needs to be deleted (required)
--
@ -39,8 +39,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
l_request.add_header(l_accept,"Accept");
@ -86,7 +86,7 @@ feature -- API Access
order_by_id (order_id: INTEGER_64): detachable ORDER
-- Find purchase order by ID
-- For valid response try integer IDs with value &gt;&#x3D; 1 and &lt;&#x3D; 10. Other values will generated exceptions
-- For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
--
-- argument: order_id ID of pet that needs to be fetched (required)
--
@ -100,8 +100,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
l_request.add_header(l_accept,"Accept");

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
@ -204,7 +204,7 @@ feature -- API Access
-- Updated user
-- This can only be done by the logged in user.
--
-- argument: username name that need to be updated (required)
-- argument: username name that need to be deleted (required)
--
-- argument: body Updated user object (required)
--

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,16 @@ 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 {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

@ -0,0 +1,82 @@
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 ADDITIONAL_PROPERTIES_CLASS
inherit
ANY
redefine
out
end
feature --Access
map_property: detachable STRING_TABLE[STRING_32]
map_of_map_property: detachable STRING_TABLE[STRING_TABLE[STRING_32]]
feature -- Change Element
set_map_property (a_name: like map_property)
-- Set 'map_property' with 'a_name'.
do
map_property := a_name
ensure
map_property_set: map_property = a_name
end
set_map_of_map_property (a_name: like map_of_map_property)
-- Set 'map_of_map_property' with 'a_name'.
do
map_of_map_property := a_name
ensure
map_of_map_property_set: map_of_map_property = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ADDITIONAL_PROPERTIES_CLASS%N")
if attached map_property as l_map_property then
across l_map_property as ic loop
Result.append ("%N")
Result.append ("key:")
Result.append (ic.key.out)
Result.append (" - ")
Result.append ("val:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
if attached map_of_map_property as l_map_of_map_property then
across l_map_of_map_property as ic loop
Result.append ("%N")
Result.append ("key:")
Result.append (ic.key.out)
Result.append (" - ")
Result.append ("val:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,70 @@
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 ANIMAL
inherit
ANY
redefine
out
end
feature --Access
class_name: detachable STRING_32
color: detachable STRING_32
feature -- Change Element
set_class_name (a_name: like class_name)
-- Set 'class_name' with 'a_name'.
do
class_name := a_name
ensure
class_name_set: class_name = a_name
end
set_color (a_name: like color)
-- Set 'color' with 'a_name'.
do
color := a_name
ensure
color_set: color = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ANIMAL%N")
if attached class_name as l_class_name then
Result.append ("%N")
Result.append (l_class_name.out)
Result.append ("%N")
end
if attached color as l_color then
Result.append ("%N")
Result.append (l_color.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,47 @@
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 ANIMAL_FARM
inherit
ANY
redefine
out
select
out
end
ARRAYED_LIST [ANIMAL]
rename
out as out_
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append(out_)
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

@ -0,0 +1,57 @@
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 ARRAY_OF_ARRAY_OF_NUMBER_ONLY
inherit
ANY
redefine
out
end
feature --Access
array_array_number: detachable LIST [LIST [REAL_32]]
feature -- Change Element
set_array_array_number (a_name: like array_array_number)
-- Set 'array_array_number' with 'a_name'.
do
array_array_number := a_name
ensure
array_array_number_set: array_array_number = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
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 (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,57 @@
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 ARRAY_OF_NUMBER_ONLY
inherit
ANY
redefine
out
end
feature --Access
array_number: LIST [REAL_32]
feature -- Change Element
set_array_number (a_name: like array_number)
-- Set 'array_number' with 'a_name'.
do
array_number := a_name
ensure
array_number_set: array_number = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
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 (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,91 @@
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 ARRAY_TEST
inherit
ANY
redefine
out
end
feature --Access
array_of_string: detachable LIST [STRING_32]
array_array_of_integer: detachable LIST [LIST [INTEGER_64]]
array_array_of_model: detachable LIST [LIST [READ_ONLY_FIRST]]
feature -- Change Element
set_array_of_string (a_name: like array_of_string)
-- Set 'array_of_string' with 'a_name'.
do
array_of_string := a_name
ensure
array_of_string_set: array_of_string = a_name
end
set_array_array_of_integer (a_name: like array_array_of_integer)
-- Set 'array_array_of_integer' with 'a_name'.
do
array_array_of_integer := a_name
ensure
array_array_of_integer_set: array_array_of_integer = a_name
end
set_array_array_of_model (a_name: like array_array_of_model)
-- Set 'array_array_of_model' with 'a_name'.
do
array_array_of_model := a_name
ensure
array_array_of_model_set: array_array_of_model = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
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 (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 (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 (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,130 @@
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 CAPITALIZATION
inherit
ANY
redefine
out
end
feature --Access
small_camel: detachable STRING_32
capital_camel: detachable STRING_32
small__snake: detachable STRING_32
capital__snake: detachable STRING_32
s_ca__et_h__flow__points: detachable STRING_32
ATT_NAME: detachable STRING_32
-- Name of the pet
feature -- Change Element
set_small_camel (a_name: like small_camel)
-- Set 'small_camel' with 'a_name'.
do
small_camel := a_name
ensure
small_camel_set: small_camel = a_name
end
set_capital_camel (a_name: like capital_camel)
-- Set 'capital_camel' with 'a_name'.
do
capital_camel := a_name
ensure
capital_camel_set: capital_camel = a_name
end
set_small__snake (a_name: like small__snake)
-- Set 'small__snake' with 'a_name'.
do
small__snake := a_name
ensure
small__snake_set: small__snake = a_name
end
set_capital__snake (a_name: like capital__snake)
-- Set 'capital__snake' with 'a_name'.
do
capital__snake := a_name
ensure
capital__snake_set: capital__snake = a_name
end
set_s_ca__et_h__flow__points (a_name: like s_ca__et_h__flow__points)
-- Set 's_ca__et_h__flow__points' with 'a_name'.
do
s_ca__et_h__flow__points := a_name
ensure
s_ca__et_h__flow__points_set: s_ca__et_h__flow__points = a_name
end
set_ATT_NAME (a_name: like ATT_NAME)
-- Set 'ATT_NAME' with 'a_name'.
do
ATT_NAME := a_name
ensure
ATT_NAME_set: ATT_NAME = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass CAPITALIZATION%N")
if attached small_camel as l_small_camel then
Result.append ("%N")
Result.append (l_small_camel.out)
Result.append ("%N")
end
if attached capital_camel as l_capital_camel then
Result.append ("%N")
Result.append (l_capital_camel.out)
Result.append ("%N")
end
if attached small__snake as l_small__snake then
Result.append ("%N")
Result.append (l_small__snake.out)
Result.append ("%N")
end
if attached capital__snake as l_capital__snake then
Result.append ("%N")
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 (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 (l_ATT_NAME.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,62 @@
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 CAT
inherit
ANY
redefine
out
select
out
end
ANIMAL
rename
out as out_animal
end
feature --Access
declawed: BOOLEAN
feature -- Change Element
set_declawed (a_name: like declawed)
-- Set 'declawed' with 'a_name'.
do
declawed := a_name
ensure
declawed_set: declawed = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append(out_animal)
Result.append("%Nclass CAT%N")
if attached declawed as l_declawed then
Result.append ("%N")
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

@ -0,0 +1,55 @@
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 CLASS_MODEL
inherit
ANY
redefine
out
end
feature --Access
var_class: detachable STRING_32
feature -- Change Element
set_var_class (a_name: like var_class)
-- Set 'var_class' with 'a_name'.
do
var_class := a_name
ensure
var_class_set: var_class = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass CLASS_MODEL%N")
if attached var_class as l_var_class then
Result.append ("%N")
Result.append (l_var_class.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,55 @@
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 CLIENT
inherit
ANY
redefine
out
end
feature --Access
client: detachable STRING_32
feature -- Change Element
set_client (a_name: like client)
-- Set 'client' with 'a_name'.
do
client := a_name
ensure
client_set: client = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass CLIENT%N")
if attached client as l_client then
Result.append ("%N")
Result.append (l_client.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,62 @@
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 DOG
inherit
ANY
redefine
out
select
out
end
ANIMAL
rename
out as out_animal
end
feature --Access
breed: detachable STRING_32
feature -- Change Element
set_breed (a_name: like breed)
-- Set 'breed' with 'a_name'.
do
breed := a_name
ensure
breed_set: breed = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append(out_animal)
Result.append("%Nclass DOG%N")
if attached breed as l_breed then
Result.append ("%N")
Result.append (l_breed.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,72 @@
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 ENUM_ARRAYS
inherit
ANY
redefine
out
end
feature --Access
just_symbol: detachable STRING_32
array_enum: detachable LIST [Array_enumEnum]
feature -- Change Element
set_just_symbol (a_name: like just_symbol)
-- Set 'just_symbol' with 'a_name'.
do
just_symbol := a_name
ensure
just_symbol_set: just_symbol = a_name
end
set_array_enum (a_name: like array_enum)
-- Set 'array_enum' with 'a_name'.
do
array_enum := a_name
ensure
array_enum_set: array_enum = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ENUM_ARRAYS%N")
if attached just_symbol as l_just_symbol then
Result.append ("%N")
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 (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,40 @@
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 ENUM_CLASS
inherit
ANY
redefine
out
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ENUM_CLASS%N")
end
end

View File

@ -0,0 +1,100 @@
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 ENUM_TEST
inherit
ANY
redefine
out
end
feature --Access
enum_string: detachable STRING_32
enum_integer: INTEGER_32
enum_number: REAL_64
outer_enum: detachable OUTER_ENUM
feature -- Change Element
set_enum_string (a_name: like enum_string)
-- Set 'enum_string' with 'a_name'.
do
enum_string := a_name
ensure
enum_string_set: enum_string = a_name
end
set_enum_integer (a_name: like enum_integer)
-- Set 'enum_integer' with 'a_name'.
do
enum_integer := a_name
ensure
enum_integer_set: enum_integer = a_name
end
set_enum_number (a_name: like enum_number)
-- Set 'enum_number' with 'a_name'.
do
enum_number := a_name
ensure
enum_number_set: enum_number = a_name
end
set_outer_enum (a_name: like outer_enum)
-- Set 'outer_enum' with 'a_name'.
do
outer_enum := a_name
ensure
outer_enum_set: outer_enum = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass ENUM_TEST%N")
if attached enum_string as l_enum_string then
Result.append ("%N")
Result.append (l_enum_string.out)
Result.append ("%N")
end
if attached enum_integer as l_enum_integer then
Result.append ("%N")
Result.append (l_enum_integer.out)
Result.append ("%N")
end
if attached enum_number as l_enum_number then
Result.append ("%N")
Result.append (l_enum_number.out)
Result.append ("%N")
end
if attached outer_enum as l_outer_enum then
Result.append ("%N")
Result.append (l_outer_enum.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,235 @@
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 FORMAT_TEST
inherit
ANY
redefine
out
end
feature --Access
integer: INTEGER_32
int32: INTEGER_32
int64: INTEGER_64
number: REAL_32
float: REAL_32
double: REAL_64
string: detachable STRING_32
byte: detachable ARRAY [NATURAL_8]
binary: detachable STRING_32
date: detachable DATE
date_time: detachable DATE_TIME
uuid: detachable UUID
password: detachable STRING_32
feature -- Change Element
set_integer (a_name: like integer)
-- Set 'integer' with 'a_name'.
do
integer := a_name
ensure
integer_set: integer = a_name
end
set_int32 (a_name: like int32)
-- Set 'int32' with 'a_name'.
do
int32 := a_name
ensure
int32_set: int32 = a_name
end
set_int64 (a_name: like int64)
-- Set 'int64' with 'a_name'.
do
int64 := a_name
ensure
int64_set: int64 = a_name
end
set_number (a_name: like number)
-- Set 'number' with 'a_name'.
do
number := a_name
ensure
number_set: number = a_name
end
set_float (a_name: like float)
-- Set 'float' with 'a_name'.
do
float := a_name
ensure
float_set: float = a_name
end
set_double (a_name: like double)
-- Set 'double' with 'a_name'.
do
double := a_name
ensure
double_set: double = a_name
end
set_string (a_name: like string)
-- Set 'string' with 'a_name'.
do
string := a_name
ensure
string_set: string = a_name
end
set_byte (a_name: like byte)
-- Set 'byte' with 'a_name'.
do
byte := a_name
ensure
byte_set: byte = a_name
end
set_binary (a_name: like binary)
-- Set 'binary' with 'a_name'.
do
binary := a_name
ensure
binary_set: binary = a_name
end
set_date (a_name: like date)
-- Set 'date' with 'a_name'.
do
date := a_name
ensure
date_set: date = a_name
end
set_date_time (a_name: like date_time)
-- Set 'date_time' with 'a_name'.
do
date_time := a_name
ensure
date_time_set: date_time = a_name
end
set_uuid (a_name: like uuid)
-- Set 'uuid' with 'a_name'.
do
uuid := a_name
ensure
uuid_set: uuid = a_name
end
set_password (a_name: like password)
-- Set 'password' with 'a_name'.
do
password := a_name
ensure
password_set: password = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass FORMAT_TEST%N")
if attached integer as l_integer then
Result.append ("%N")
Result.append (l_integer.out)
Result.append ("%N")
end
if attached int32 as l_int32 then
Result.append ("%N")
Result.append (l_int32.out)
Result.append ("%N")
end
if attached int64 as l_int64 then
Result.append ("%N")
Result.append (l_int64.out)
Result.append ("%N")
end
if attached number as l_number then
Result.append ("%N")
Result.append (l_number.out)
Result.append ("%N")
end
if attached float as l_float then
Result.append ("%N")
Result.append (l_float.out)
Result.append ("%N")
end
if attached double as l_double then
Result.append ("%N")
Result.append (l_double.out)
Result.append ("%N")
end
if attached string as l_string then
Result.append ("%N")
Result.append (l_string.out)
Result.append ("%N")
end
if attached byte as l_byte then
Result.append ("%N")
Result.append (l_byte.out)
Result.append ("%N")
end
if attached binary as l_binary then
Result.append ("%N")
Result.append (l_binary.out)
Result.append ("%N")
end
if attached date as l_date then
Result.append ("%N")
Result.append (l_date.out)
Result.append ("%N")
end
if attached date_time as l_date_time then
Result.append ("%N")
Result.append (l_date_time.out)
Result.append ("%N")
end
if attached uuid as l_uuid then
Result.append ("%N")
Result.append (l_uuid.out)
Result.append ("%N")
end
if attached password as l_password then
Result.append ("%N")
Result.append (l_password.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,70 @@
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 HAS_ONLY_READ_ONLY
inherit
ANY
redefine
out
end
feature --Access
bar: detachable STRING_32
foo: detachable STRING_32
feature -- Change Element
set_bar (a_name: like bar)
-- Set 'bar' with 'a_name'.
do
bar := a_name
ensure
bar_set: bar = a_name
end
set_foo (a_name: like foo)
-- Set 'foo' with 'a_name'.
do
foo := a_name
ensure
foo_set: foo = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass HAS_ONLY_READ_ONLY%N")
if attached bar as l_bar then
Result.append ("%N")
Result.append (l_bar.out)
Result.append ("%N")
end
if attached foo as l_foo then
Result.append ("%N")
Result.append (l_foo.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,82 @@
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 MAP_TEST
inherit
ANY
redefine
out
end
feature --Access
map_map_of_string: detachable STRING_TABLE[STRING_TABLE[STRING_32]]
map_of_enum_string: detachable STRING_TABLE[STRING_32]
feature -- Change Element
set_map_map_of_string (a_name: like map_map_of_string)
-- Set 'map_map_of_string' with 'a_name'.
do
map_map_of_string := a_name
ensure
map_map_of_string_set: map_map_of_string = a_name
end
set_map_of_enum_string (a_name: like map_of_enum_string)
-- Set 'map_of_enum_string' with 'a_name'.
do
map_of_enum_string := a_name
ensure
map_of_enum_string_set: map_of_enum_string = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass MAP_TEST%N")
if attached map_map_of_string as l_map_map_of_string then
across l_map_map_of_string as ic loop
Result.append ("%N")
Result.append ("key:")
Result.append (ic.key.out)
Result.append (" - ")
Result.append ("val:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
if attached map_of_enum_string as l_map_of_enum_string then
across l_map_of_enum_string as ic loop
Result.append ("%N")
Result.append ("key:")
Result.append (ic.key.out)
Result.append (" - ")
Result.append ("val:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,91 @@
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 MIXED_PROPERTIES_AND_ADDITIONAL_PROPERTIES_CLASS
inherit
ANY
redefine
out
end
feature --Access
uuid: detachable UUID
date_time: detachable DATE_TIME
map: detachable STRING_TABLE[ANIMAL]
feature -- Change Element
set_uuid (a_name: like uuid)
-- Set 'uuid' with 'a_name'.
do
uuid := a_name
ensure
uuid_set: uuid = a_name
end
set_date_time (a_name: like date_time)
-- Set 'date_time' with 'a_name'.
do
date_time := a_name
ensure
date_time_set: date_time = a_name
end
set_map (a_name: like map)
-- Set 'map' with 'a_name'.
do
map := a_name
ensure
map_set: map = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
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 (l_uuid.out)
Result.append ("%N")
end
if attached date_time as l_date_time then
Result.append ("%N")
Result.append (l_date_time.out)
Result.append ("%N")
end
if attached map as l_map then
across l_map as ic loop
Result.append ("%N")
Result.append ("key:")
Result.append (ic.key.out)
Result.append (" - ")
Result.append ("val:")
Result.append (ic.item.out)
Result.append ("%N")
end
end
end
end

View File

@ -0,0 +1,70 @@
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 MODEL_200_RESPONSE
inherit
ANY
redefine
out
end
feature --Access
name: INTEGER_32
var_class: detachable STRING_32
feature -- Change Element
set_name (a_name: like name)
-- Set 'name' with 'a_name'.
do
name := a_name
ensure
name_set: name = a_name
end
set_var_class (a_name: like var_class)
-- Set 'var_class' with 'a_name'.
do
var_class := a_name
ensure
var_class_set: var_class = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass MODEL_200_RESPONSE%N")
if attached name as l_name then
Result.append ("%N")
Result.append (l_name.out)
Result.append ("%N")
end
if attached var_class as l_var_class then
Result.append ("%N")
Result.append (l_var_class.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,100 @@
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 NAME
inherit
ANY
redefine
out
end
feature --Access
name: INTEGER_32
snake_case: INTEGER_32
property: detachable STRING_32
var_123_number: INTEGER_32
feature -- Change Element
set_name (a_name: like name)
-- Set 'name' with 'a_name'.
do
name := a_name
ensure
name_set: name = a_name
end
set_snake_case (a_name: like snake_case)
-- Set 'snake_case' with 'a_name'.
do
snake_case := a_name
ensure
snake_case_set: snake_case = a_name
end
set_property (a_name: like property)
-- Set 'property' with 'a_name'.
do
property := a_name
ensure
property_set: property = a_name
end
set_var_123_number (a_name: like var_123_number)
-- Set 'var_123_number' with 'a_name'.
do
var_123_number := a_name
ensure
var_123_number_set: var_123_number = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass NAME%N")
if attached name as l_name then
Result.append ("%N")
Result.append (l_name.out)
Result.append ("%N")
end
if attached snake_case as l_snake_case then
Result.append ("%N")
Result.append (l_snake_case.out)
Result.append ("%N")
end
if attached property as l_property then
Result.append ("%N")
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 (l_var_123_number.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,55 @@
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 NUMBER_ONLY
inherit
ANY
redefine
out
end
feature --Access
just_number: REAL_32
feature -- Change Element
set_just_number (a_name: like just_number)
-- Set 'just_number' with 'a_name'.
do
just_number := a_name
ensure
just_number_set: just_number = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass NUMBER_ONLY%N")
if attached just_number as l_just_number then
Result.append ("%N")
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

@ -0,0 +1,40 @@
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 OUTER_BOOLEAN
inherit
ANY
redefine
out
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_BOOLEAN%N")
end
end

View File

@ -0,0 +1,85 @@
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 OUTER_COMPOSITE
inherit
ANY
redefine
out
end
feature --Access
my_number: detachable OUTER_NUMBER
my_string: detachable OUTER_STRING
my_boolean: detachable OUTER_BOOLEAN
feature -- Change Element
set_my_number (a_name: like my_number)
-- Set 'my_number' with 'a_name'.
do
my_number := a_name
ensure
my_number_set: my_number = a_name
end
set_my_string (a_name: like my_string)
-- Set 'my_string' with 'a_name'.
do
my_string := a_name
ensure
my_string_set: my_string = a_name
end
set_my_boolean (a_name: like my_boolean)
-- Set 'my_boolean' with 'a_name'.
do
my_boolean := a_name
ensure
my_boolean_set: my_boolean = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_COMPOSITE%N")
if attached my_number as l_my_number then
Result.append ("%N")
Result.append (l_my_number.out)
Result.append ("%N")
end
if attached my_string as l_my_string then
Result.append ("%N")
Result.append (l_my_string.out)
Result.append ("%N")
end
if attached my_boolean as l_my_boolean then
Result.append ("%N")
Result.append (l_my_boolean.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,40 @@
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 OUTER_ENUM
inherit
ANY
redefine
out
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_ENUM%N")
end
end

View File

@ -0,0 +1,40 @@
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 OUTER_NUMBER
inherit
ANY
redefine
out
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_NUMBER%N")
end
end

View File

@ -0,0 +1,40 @@
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 OUTER_STRING
inherit
ANY
redefine
out
end
feature --Access
feature -- Change Element
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass OUTER_STRING%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

@ -0,0 +1,70 @@
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 READ_ONLY_FIRST
inherit
ANY
redefine
out
end
feature --Access
bar: detachable STRING_32
baz: detachable STRING_32
feature -- Change Element
set_bar (a_name: like bar)
-- Set 'bar' with 'a_name'.
do
bar := a_name
ensure
bar_set: bar = a_name
end
set_baz (a_name: like baz)
-- Set 'baz' with 'a_name'.
do
baz := a_name
ensure
baz_set: baz = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass READ_ONLY_FIRST%N")
if attached bar as l_bar then
Result.append ("%N")
Result.append (l_bar.out)
Result.append ("%N")
end
if attached baz as l_baz then
Result.append ("%N")
Result.append (l_baz.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,55 @@
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 RETURN
inherit
ANY
redefine
out
end
feature --Access
return: INTEGER_32
feature -- Change Element
set_return (a_name: like return)
-- Set 'return' with 'a_name'.
do
return := a_name
ensure
return_set: return = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
create Result.make_empty
Result.append("%Nclass RETURN%N")
if attached return as l_return then
Result.append ("%N")
Result.append (l_return.out)
Result.append ("%N")
end
end
end

View File

@ -0,0 +1,55 @@
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 SPECIAL_MODEL_NAME
inherit
ANY
redefine
out
end
feature --Access
special_property_name: INTEGER_64
feature -- Change Element
set_special_property_name (a_name: like special_property_name)
-- Set 'special_property_name' with 'a_name'.
do
special_property_name := a_name
ensure
special_property_name_set: special_property_name = a_name
end
feature -- Status Report
out: STRING
-- <Precursor>
do
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 (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="39b96fb9-1fd9-4847-9977-76cdf1c0baaa">
<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="852c8325-690a-42c3-b22e-21a39d723d98">
<target name="test">
<root feature="make" class="APPLICATION"/>
<file_rule>

View File

@ -0,0 +1,161 @@
note
description: "API tests for FAKE_API"
date: "$Date$"
revision: "$Revision$"
class FAKE_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_fake_outer_boolean_serialize
--
--
-- Test serialization of outer boolean types
local
l_response: OUTER_BOOLEAN
l_body: OUTER_BOOLEAN
do
-- TODO: Initialize required params.
-- l_response := api.fake_outer_boolean_serialize(l_body)
assert ("not_implemented", False)
end
test_fake_outer_composite_serialize
--
--
-- Test serialization of object with outer number type
local
l_response: OUTER_COMPOSITE
l_body: OUTER_COMPOSITE
do
-- TODO: Initialize required params.
-- l_response := api.fake_outer_composite_serialize(l_body)
assert ("not_implemented", False)
end
test_fake_outer_number_serialize
--
--
-- Test serialization of outer number types
local
l_response: OUTER_NUMBER
l_body: OUTER_NUMBER
do
-- TODO: Initialize required params.
-- l_response := api.fake_outer_number_serialize(l_body)
assert ("not_implemented", False)
end
test_fake_outer_string_serialize
--
--
-- Test serialization of outer string types
local
l_response: OUTER_STRING
l_body: OUTER_STRING
do
-- TODO: Initialize required params.
-- l_response := api.fake_outer_string_serialize(l_body)
assert ("not_implemented", False)
end
test_test_client_model
-- To test \&quot;client\&quot; model
--
-- To test \&quot;client\&quot; model
local
l_response: CLIENT
l_body: CLIENT
do
-- TODO: Initialize required params.
-- l_body
-- l_response := api.test_client_model(l_body)
assert ("not_implemented", False)
end
test_test_endpoint_parameters
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
--
-- Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
local
l_number: REAL_32
l_double: REAL_64
l_pattern_without_delimiter: STRING_32
l_byte: ARRAY [NATURAL_8]
l_integer: INTEGER_32
l_int32: INTEGER_32
l_int64: INTEGER_64
l_float: REAL_32
l_string: STRING_32
l_binary: STRING_32
l_date: DATE
l_date_time: DATE_TIME
l_password: STRING_32
l_callback: STRING_32
do
-- TODO: Initialize required params.
-- l_number
-- l_double
-- l_pattern_without_delimiter
-- l_byte
-- api.test_endpoint_parameters(l_number, l_double, l_pattern_without_delimiter, l_byte, l_integer, l_int32, l_int64, l_float, l_string, l_binary, l_date, l_date_time, l_password, l_callback)
assert ("not_implemented", False)
end
test_test_enum_parameters
-- To test enum parameters
--
-- To test enum parameters
local
l_enum_form_string_array: LIST [STRING_32]
l_enum_form_string: STRING_32
l_enum_header_string_array: LIST [STRING_32]
l_enum_header_string: STRING_32
l_enum_query_string_array: LIST [STRING_32]
l_enum_query_string: STRING_32
l_enum_query_integer: INTEGER_32
l_enum_query_double: REAL_64
do
-- TODO: Initialize required params.
-- api.test_enum_parameters(l_enum_form_string_array, l_enum_form_string, l_enum_header_string_array, l_enum_header_string, l_enum_query_string_array, l_enum_query_string, l_enum_query_integer, l_enum_query_double)
assert ("not_implemented", False)
end
test_test_json_form_data
-- test json serialization of form data
--
--
local
l_param: STRING_32
l_param2: STRING_32
do
-- TODO: Initialize required params.
-- l_param
-- l_param2
-- api.test_json_form_data(l_param, l_param2)
assert ("not_implemented", False)
end
feature {NONE} -- Implementation
api: FAKE_API
-- Create an object instance of `FAKE_API'.
once
create { FAKE_API } Result
end
end

View File

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