* 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>
6.2 KiB
USER_API
All URIs are relative to http://petstore.swagger.io:80/v2
Feature | HTTP request | Description |
---|---|---|
create_user | Post /user | Create user |
create_users_with_array_input | Post /user/createWithArray | Creates list of users with given input array |
create_users_with_list_input | Post /user/createWithList | Creates list of users with given input array |
delete_user | Delete /user/{username} | Delete user |
login_user | Get /user/login | Logs user into the system |
logout_user | Get /user/logout | Logs out current logged in user session |
update_user | Put /user/{username} | Updated user |
user_by_name | Get /user/{username} | Get user by user name |
create_user
create_user (body: USER )
Create user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | USER | Created user object |
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]
create_users_with_array_input
create_users_with_array_input (body: LIST [USER] )
Creates list of users with given input array
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | LIST [USER] | List of user object |
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]
create_users_with_list_input
create_users_with_list_input (body: LIST [USER] )
Creates list of users with given input array
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | LIST [USER] | List of user object |
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]
delete_user
delete_user (username: STRING_32 )
Delete user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | STRING_32 | The name that needs to be deleted | [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]
login_user
login_user (username: STRING_32 ; password: STRING_32 ): detachable STRING_32
Logs user into the system
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | STRING_32 | The user name for login | [default to null] |
password | STRING_32 | The password for login in clear text | [default to null] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
logout_user
logout_user
Logs out current logged in user session
Parameters
This endpoint does not need any parameter.
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]
update_user
update_user (username: STRING_32 ; body: USER )
Updated user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | STRING_32 | name that need to be deleted | [default to null] |
body | USER | Updated user object |
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]
user_by_name
user_by_name (username: STRING_32 ): detachable USER
Get user by user name
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | STRING_32 | The name that needs to be fetched. Use user1 for testing. | [default to null] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]