Kraust 8862b960f8
Add cpp-oatpp-server generator (alpha) (#21547)
* Oat++ Server Generator (C++)

* Fixed for support for newest OpenAPI version.

* ALPHA not STABLE.

* Fixed for support for newest OpenAPI version.

* Added github workflow & changed to OA3 Petstore.

* Good catch on adding the Workflow.

* Might help to update the samples.

* Set C++ Standard the CMake way.

* Would be easier if there was a .pc file.

* oatpp.lib.

* Add ws2.

* This probably doesn't work, need to take a time out.
2025-07-16 15:32:28 +08:00

110 lines
3.1 KiB
C++

/**
* 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.
*/
#include "PetApiController.hpp"
namespace org {
namespace openapitools {
namespace server {
namespace api {
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::add_pet(const std::shared_ptr<IncomingRequest> &request, const oatpp::Object<org::openapitools::server::model::Pet> &pet) {
(void)request;
(void)pet;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::delete_pet(const std::shared_ptr<IncomingRequest> &request, const oatpp::Int64 &petId, const oatpp::String &apiKey) {
(void)request;
(void)petId;
(void)apiKey;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::find_pets_by_status(const std::shared_ptr<IncomingRequest> &request, const oatpp::Vector<oatpp::String> &status) {
(void)request;
(void)status;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::find_pets_by_tags(const std::shared_ptr<IncomingRequest> &request, const oatpp::Vector<oatpp::String> &tags) {
(void)request;
(void)tags;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::get_pet_by_id(const std::shared_ptr<IncomingRequest> &request, const oatpp::Int64 &petId) {
(void)request;
(void)petId;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::update_pet(const std::shared_ptr<IncomingRequest> &request, const oatpp::Object<org::openapitools::server::model::Pet> &pet) {
(void)request;
(void)pet;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::update_pet_with_form(const std::shared_ptr<IncomingRequest> &request, const oatpp::Int64 &petId) {
(void)request;
(void)petId;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> PetApiController::upload_file(const std::shared_ptr<IncomingRequest> &request, const oatpp::Int64 &petId) {
(void)request;
(void)petId;
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
}
}
}
}
}