Javier Velilla c0c2f2b804
[Eiffel] various enhancements (#8076)
* Updated Eiffel code generator.
	Added missing language reserved words.

Updated mustache templates to use the latest Eiffel rules to avoid obsolte
feature calls and Cat-Calls.
Updated Eiffel configuration files (ecf's)
Updated comments styles.
Updated Travis CI file to use the latest Eiffel compiler.
Updated EIffel sample to use https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml

* Added missing mapping decimal to REAL_64
Added Eiffel Kernel classes to importMapping to avoid generate models for
them.
Fixed issue with Eiffel feature name generation, updated toOperationId(String) method.
Simplified toInstantiationType method implementaetion.
Improved model.mustache to generate Eiffel models.

* Updated Eiffel sample.

* Removed unneeded tabs.

* Added AnyType mapping to ANY
Removed unneeded tab
Updated model name, remane models that starts with _.

* update doc

Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-12-07 10:07:03 +08:00

15 KiB

FAKE_API

All URIs are relative to http://petstore.swagger.io:80/v2

Feature HTTP request Description
create_xml_item Post /fake/create_xml_item creates an XmlItem
fake_outer_boolean_serialize Post /fake/outer/boolean
fake_outer_composite_serialize Post /fake/outer/composite
fake_outer_number_serialize Post /fake/outer/number
fake_outer_string_serialize Post /fake/outer/string
test_body_with_file_schema Put /fake/body-with-file-schema
test_body_with_query_params Put /fake/body-with-query-params
test_client_model Patch /fake To test &quot;client&quot; model
test_endpoint_parameters Post /fake Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
test_enum_parameters Get /fake To test enum parameters
test_group_parameters Delete /fake Fake endpoint to test group parameters (optional)
test_inline_additional_properties Post /fake/inline-additionalProperties test inline additionalProperties
test_json_form_data Get /fake/jsonFormData test json serialization of form data
test_query_parameter_collection_format Put /fake/test-query-paramters

create_xml_item

create_xml_item (xml_item: XML_ITEM )

creates an XmlItem

this route creates an XmlItem

Parameters

Name Type Description Notes
xml_item XML_ITEM XmlItem Body

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fake_outer_boolean_serialize

fake_outer_boolean_serialize (body: detachable BOOLEAN ): detachable BOOLEAN

Test serialization of outer boolean types

Parameters

Name Type Description Notes
body BOOLEAN Input boolean as post body [optional]

Return type

BOOLEAN

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

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 Input composite as post body [optional]

Return type

OUTER_COMPOSITE

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fake_outer_number_serialize

fake_outer_number_serialize (body: detachable REAL_32 ): detachable REAL_32

Test serialization of outer number types

Parameters

Name Type Description Notes
body REAL_32 Input number as post body [optional]

Return type

REAL_32

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fake_outer_string_serialize

fake_outer_string_serialize (body: detachable STRING_32 ): detachable STRING_32

Test serialization of outer string types

Parameters

Name Type Description Notes
body STRING_32 Input string as post body [optional]

Return type

STRING_32

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

test_body_with_file_schema

test_body_with_file_schema (body: FILE_SCHEMA_TEST_CLASS )

For this test, the body for this request much reference a schema named File.

Parameters

Name Type Description Notes
body FILE_SCHEMA_TEST_CLASS

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] [Back to Model list] [Back to README]

test_body_with_query_params

test_body_with_query_params (query: STRING_32 ; body: USER )

Parameters

Name Type Description Notes
query STRING_32 [default to null]
body USER

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] [Back to Model list] [Back to README]

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 model

Return type

CLIENT

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

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 FILE ; date: detachable DATE ; date_time: detachable DATE_TIME ; password: detachable STRING ; 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 [default to null]
double REAL_64 None [default to null]
pattern_without_delimiter STRING_32 None [default to null]
byte ARRAY [NATURAL_8] None [default to null]
integer INTEGER_32 None [optional] [default to null]
int32 INTEGER_32 None [optional] [default to null]
int64 INTEGER_64 None [optional] [default to null]
float REAL_32 None [optional] [default to null]
string STRING_32 None [optional] [default to null]
binary FILE None [optional] [default to null]
date DATE None [optional] [default to null]
date_time DATE_TIME None [optional] [default to null]
password STRING None [optional] [default to null]
callback STRING_32 None [optional] [default to null]

Return type

{empty response body)

Authorization

http_basic_test

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

test_enum_parameters

test_enum_parameters (enum_header_string_array: detachable LIST [STRING_32] ; enum_header_string: detachable STRING_32 ; enum_query_string_array: detachable LIST [STRING_32] ; enum_query_string: detachable STRING_32 ; enum_query_integer: detachable INTEGER_32 ; enum_query_double: detachable REAL_64 ; enum_form_string_array: detachable LIST [STRING_32] ; enum_form_string: detachable STRING_32 )

To test enum parameters

To test enum parameters

Parameters

Name Type Description Notes
enum_header_string_array LIST [STRING_32] Header parameter enum test (string array) [optional] [default to null]
enum_header_string STRING_32 Header parameter enum test (string) [optional] [default to -efg]
enum_query_string_array LIST [STRING_32] Query parameter enum test (string array) [optional] [default to null]
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] [default to null]
enum_query_double REAL_64 Query parameter enum test (double) [optional] [default to null]
enum_form_string_array LIST [STRING_32] Form parameter enum test (string array) [optional] [default to $]
enum_form_string STRING_32 Form parameter enum test (string) [optional] [default to -efg]

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

test_group_parameters

test_group_parameters (required_string_group: INTEGER_32 ; required_boolean_group: BOOLEAN ; required_int64_group: INTEGER_64 ; string_group: detachable INTEGER_32 ; boolean_group: detachable BOOLEAN ; int64_group: detachable INTEGER_64 )

Fake endpoint to test group parameters (optional)

Fake endpoint to test group parameters (optional)

Parameters

Name Type Description Notes
required_string_group INTEGER_32 Required String in group parameters [default to null]
required_boolean_group BOOLEAN Required Boolean in group parameters [default to null]
required_int64_group INTEGER_64 Required Integer in group parameters [default to null]
string_group INTEGER_32 String in group parameters [optional] [default to null]
boolean_group BOOLEAN Boolean in group parameters [optional] [default to null]
int64_group INTEGER_64 Integer in group parameters [optional] [default to null]

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

test_inline_additional_properties

test_inline_additional_properties (param: STRING_TABLE [STRING_32] )

test inline additionalProperties

Parameters

Name Type Description Notes
param STRING_TABLE [STRING_32] request body

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

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 [default to null]
param2 STRING_32 field2 [default to null]

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

test_query_parameter_collection_format

test_query_parameter_collection_format (pipe: LIST [STRING_32] ; ioutil: LIST [STRING_32] ; http: LIST [STRING_32] ; url: LIST [STRING_32] ; context: LIST [STRING_32] )

To test the collection format in query parameters

Parameters

Name Type Description Notes
pipe LIST [STRING_32] [default to null]
ioutil LIST [STRING_32] [default to null]
http LIST [STRING_32] [default to null]
url LIST [STRING_32] [default to null]
context LIST [STRING_32] [default to null]

Return type

{empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]