forked from loafle/openapi-generator-original
62 lines
1.3 KiB
C++
62 lines
1.3 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.
|
|
*/
|
|
|
|
/*
|
|
* StoreApiImpl.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef STORE_API_IMPL_H_
|
|
#define STORE_API_IMPL_H_
|
|
|
|
|
|
#include <pistache/endpoint.h>
|
|
#include <pistache/http.h>
|
|
#include <pistache/router.h>
|
|
#include <memory>
|
|
|
|
#include <StoreApi.h>
|
|
|
|
#include <pistache/optional.h>
|
|
|
|
#include "Order.h"
|
|
#include <map>
|
|
#include <string>
|
|
|
|
namespace org {
|
|
namespace openapitools {
|
|
namespace server {
|
|
namespace api {
|
|
|
|
using namespace org::openapitools::server::model;
|
|
|
|
class StoreApiImpl : public org::openapitools::server::api::StoreApi {
|
|
public:
|
|
StoreApiImpl(std::shared_ptr<Pistache::Rest::Router>);
|
|
~StoreApiImpl() {}
|
|
|
|
void delete_order(const std::string &orderId, Pistache::Http::ResponseWriter &response);
|
|
void get_inventory(Pistache::Http::ResponseWriter &response);
|
|
void get_order_by_id(const int64_t &orderId, Pistache::Http::ResponseWriter &response);
|
|
void place_order(const Order &order, Pistache::Http::ResponseWriter &response);
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endif |