mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-17 09:53:41 +00:00
* 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.
94 lines
3.2 KiB
C++
94 lines
3.2 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 "UserApiController.hpp"
|
|
|
|
namespace org {
|
|
namespace openapitools {
|
|
namespace server {
|
|
namespace api {
|
|
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::create_user(const std::shared_ptr<IncomingRequest> &request, const oatpp::Object<org::openapitools::server::model::User> &user) {
|
|
(void)request;
|
|
|
|
|
|
(void)user;
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::create_users_with_array_input(const std::shared_ptr<IncomingRequest> &request, const oatpp::Vector<oatpp::Object<org::openapitools::server::model::User>> &user) {
|
|
(void)request;
|
|
|
|
|
|
(void)user;
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::create_users_with_list_input(const std::shared_ptr<IncomingRequest> &request, const oatpp::Vector<oatpp::Object<org::openapitools::server::model::User>> &user) {
|
|
(void)request;
|
|
|
|
|
|
(void)user;
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::delete_user(const std::shared_ptr<IncomingRequest> &request, const oatpp::String &username) {
|
|
(void)request;
|
|
(void)username;
|
|
|
|
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::get_user_by_name(const std::shared_ptr<IncomingRequest> &request, const oatpp::String &username) {
|
|
(void)request;
|
|
(void)username;
|
|
|
|
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::login_user(const std::shared_ptr<IncomingRequest> &request, const oatpp::String &username, const oatpp::String &password) {
|
|
(void)request;
|
|
|
|
(void)username;
|
|
|
|
|
|
|
|
(void)password;
|
|
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::logout_user(const std::shared_ptr<IncomingRequest> &request) {
|
|
(void)request;
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> UserApiController::update_user(const std::shared_ptr<IncomingRequest> &request, const oatpp::String &username, const oatpp::Object<org::openapitools::server::model::User> &user) {
|
|
(void)request;
|
|
(void)username;
|
|
|
|
|
|
|
|
|
|
|
|
(void)user;
|
|
|
|
return createResponse(Status::CODE_501, "TODO: Implement API Handler");
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|