forked from loafle/openapi-generator-original
56 lines
2.1 KiB
C++
56 lines
2.1 KiB
C++
/**
|
|
* Swagger Petstore
|
|
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* OpenAPI spec version: 1.0.0
|
|
* Contact: apiteam@swagger.io
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
#include "PetApiImpl.h"
|
|
|
|
namespace io {
|
|
namespace swagger {
|
|
namespace server {
|
|
namespace api {
|
|
|
|
using namespace io::swagger::server::model;
|
|
|
|
PetApiImpl::PetApiImpl(Pistache::Address addr)
|
|
: PetApi(addr)
|
|
{ }
|
|
|
|
void PetApiImpl::add_pet(const Pet &pet, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::delete_pet(const int64_t &petId, const Optional<Net::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 Optional<std::string> &status, Pistache::Http::ResponseWriter &response) {
|
|
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
|
|
}
|
|
void PetApiImpl::find_pets_by_tags(const Optional<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 &pet, 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");
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|