* Port of PR https://github.com/swagger-api/swagger-codegen/pull/8804. * Correction of conflict with PR #528 (missing template file). * Add rust-reqwest samples to Circle CI tests. * Add integration test pom.xml file with launcher to trigger cargo execution. * Deduplicate Maven project name. * Fix "api_key" header for Petstore. * Better API key management. * Fix query param for lists of objects other than strings (numbers, etc.). * Update to reqwest 0.9, and refactor of header management (using reqwest transition feature). * Merge scripts generating rust-hyper and rust-reqwest samples. * Consistent full stops. * Use raw variables in all Rust mustache templates. * Replace production build in CI with a quick simple check. * Update samples. * Finish Reqwest 0.9 migration (removing "hyper 0.11" transition feature). * Configuration implements Default trait. * API template reorganized: HashMap is not required anymore. * Revert "Merge scripts generating rust-hyper and rust-reqwest samples." This reverts commit 970f996566a740045f2a986fd70fc70f11952925. * Remove deprecated "-XX:MaxPermSize" java arg.
3.3 KiB
\StoreApi
All URIs are relative to http://petstore.swagger.io/v2
Method | HTTP request | Description |
---|---|---|
delete_order | delete /store/order/{orderId} | Delete purchase order by ID |
get_inventory | get /store/inventory | Returns pet inventories by status |
get_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) Delete purchase order by ID
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
order_id | String | 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: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_inventory
::std::collections::HashMap<String, i32> get_inventory(ctx, ) Returns pet inventories by status
Returns a map of status codes to quantities
Required Parameters
This endpoint does not need any parameter.
Return type
::std::collections::HashMap<String, i32>
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]
get_order_by_id
::models::Order get_order_by_id(order_id) Find purchase order by ID
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
order_id | i64 | 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
::models::Order place_order(order) Place an order for a pet
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
order | 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]