/** * Test swagger file * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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. */ /* * StoreApi.h * * */ #ifndef StoreApi_H_ #define StoreApi_H_ #include "ApiBase.h" #include #include #include #include #include #include "OuterType.h" namespace org::openapitools::server::api { class StoreApi : public ApiBase { public: explicit StoreApi(const std::shared_ptr& rtr); ~StoreApi() override = default; void init() override; static const std::string base; private: void setupRoutes(); void get_nested_object_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); void store_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); /// /// Helper function to handle unexpected Exceptions during Parameter parsing and validation. /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual void handleParsingException(const std::exception& ex, Pistache::Http::ResponseWriter &response) const noexcept; /// /// Helper function to handle unexpected Exceptions during Parameter parsing and validation. /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleParsingException(const std::exception& ex) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual void handleOperationException(const std::exception& ex, Pistache::Http::ResponseWriter &response) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleOperationException(const std::exception& ex) const noexcept; /// /// /// /// /// /// virtual void get_nested_object(Pistache::Http::ResponseWriter &response) = 0; }; } // namespace org::openapitools::server::api #endif /* StoreApi_H_ */