* 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>
3.3 KiB
STORE_API
All URIs are relative to http://petstore.swagger.io:80/v2
Feature | HTTP request | Description |
---|---|---|
delete_order | Delete /store/order/{order_id} | Delete purchase order by ID |
inventory | Get /store/inventory | Returns pet inventories by status |
order_by_id | Get /store/order/{order_id} | Find purchase order by ID |
place_order | Post /store/order | Place an order for a pet |
delete_order
delete_order (order_id: STRING_32 )
Delete purchase order by ID
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 | STRING_32 | ID of the order 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]
inventory
inventory : detachable STRING_TABLE [INTEGER_32]
Returns pet inventories by status
Returns a map of status codes to quantities
Parameters
This endpoint does not need any parameter.
Return type
STRING_TABLE [INTEGER_32]
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
order_by_id
order_by_id (order_id: INTEGER_64 ): detachable ORDER
Find purchase order by ID
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Parameters
Name | Type | Description | Notes |
---|---|---|---|
order_id | INTEGER_64 | ID of pet that needs to be fetched | [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]
place_order
place_order (body: ORDER ): detachable ORDER
Place an order for a pet
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | ORDER | order placed for purchasing the pet |
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]