/** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /* * StoreApiController.hpp * * */ #ifndef STORE_API_IMPL_H_ #define STORE_API_IMPL_H_ #include #include "oatpp/core/Types.hpp" #include "Order.hpp" namespace org::openapitools::server::api { class StoreApiController : public StoreApi { public: /// /// Delete purchase order by ID /// /// /// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors /// /// HTTP Request /// ID of the order that needs to be deleted virtual std::shared_ptr delete_order(const std::shared_ptr &request, const oatpp::String &orderId); /// /// Returns pet inventories by status /// /// /// Returns a map of status codes to quantities /// /// HTTP Request virtual std::shared_ptr get_inventory(const std::shared_ptr &request); /// /// Find purchase order by ID /// /// /// For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions /// /// HTTP Request /// ID of pet that needs to be fetched virtual std::shared_ptr get_order_by_id(const std::shared_ptr &request, const oatpp::Int64 &orderId); /// /// Place an order for a pet /// /// /// /// /// HTTP Request /// order placed for purchasing the pet virtual std::shared_ptr place_order(const std::shared_ptr &request, const oatpp::Object &order); }; } // namespace org::openapitools::server::api #endif