* Updated api client, Required parameters {{#required}} .. {{/required}}, are mapped to Eiffel Void Safety Rules, optional parameters are translated to detachable TYPE. Validation Rules are mapped to preconditions, at the moment maximun and minimun validation has been added. Improved API_CLIENT.parameter_to_tuple feature to accept a LIST [ANY] instead of LIST [STRING_32]. Improved model template to generate the model output. * Updated API_CLIENT.parameter_to_string feature, missing STRING representation. * Updating sample using the latest modifications.
3.3 KiB
STORE_API
All URIs are relative to http://petstore.swagger.io/v2
Feature | HTTP request | Description |
---|---|---|
delete_order | Delete /store/order/{orderId} | Delete purchase order by ID |
inventory | Get /store/inventory | Returns pet inventories by status |
order_by_id | Get /store/order/{orderId} | 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 |
Return type
{empty response body)
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]
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 |
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]