mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-14 05:30:51 +00:00
* Fixed #2643 Refactored to/from json functions to use universal object serialization method. * Code review found incorrect indenting and I forgot to remove unused mustache files. * Removed helpers class because it is not needed anymore. * Removed helpers package from docs. * Reverted helper class removal.
56 lines
2.0 KiB
C++
56 lines
2.0 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.
|
|
*
|
|
* OpenAPI spec version: 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 "PetApiImpl.h"
|
|
|
|
namespace org {
|
|
namespace openapitools {
|
|
namespace server {
|
|
namespace api {
|
|
|
|
using namespace org::openapitools::server::model;
|
|
|
|
PetApiImpl::PetApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr)
|
|
: PetApi(rtr)
|
|
{ }
|
|
|
|
void PetApiImpl::add_pet(const Pet &body, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::delete_pet(const int64_t &petId, const Pistache::Optional<Pistache::Http::Header::Raw> &apiKey, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::find_pets_by_status(const Pistache::Optional<std::vector<std::string>> &status, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::find_pets_by_tags(const Pistache::Optional<std::vector<std::string>> &tags, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::get_pet_by_id(const int64_t &petId, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::update_pet(const Pet &body, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::update_pet_with_form(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter &response){
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::upload_file(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter &response){
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|