openapi-generator/samples/server/petstore/restbed/api/StoreApi.h
2017-07-13 17:31:23 +08:00

100 lines
2.3 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 2.2.3-SNAPSHOT.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
/*
* StoreApi.h
*
*
*/
#ifndef StoreApi_H_
#define StoreApi_H_
#include <memory>
#include <corvusoft/restbed/session.hpp>
#include <corvusoft/restbed/resource.hpp>
#include <corvusoft/restbed/service.hpp>
#include "Order.h"
#include <map>
#include <string>
namespace io {
namespace swagger {
namespace server {
namespace api {
using namespace io::swagger::server::model;
class StoreApi: public restbed::Service
{
public:
StoreApi();
~StoreApi();
void startService(int const& port);
void stopService();
};
/// <summary>
/// Delete purchase order by ID
/// </summary>
/// <remarks>
/// For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
/// </remarks>
class StoreApiStoreOrderOrderIdResource: public restbed::Resource
{
public:
StoreApiStoreOrderOrderIdResource();
virtual ~StoreApiStoreOrderOrderIdResource();
void DELETE_method_handler(const std::shared_ptr<restbed::Session> session);
void GET_method_handler(const std::shared_ptr<restbed::Session> session);
};
/// <summary>
/// Returns pet inventories by status
/// </summary>
/// <remarks>
/// Returns a map of status codes to quantities
/// </remarks>
class StoreApiStoreInventoryResource: public restbed::Resource
{
public:
StoreApiStoreInventoryResource();
virtual ~StoreApiStoreInventoryResource();
void GET_method_handler(const std::shared_ptr<restbed::Session> session);
};
/// <summary>
/// Place an order for a pet
/// </summary>
/// <remarks>
///
/// </remarks>
class StoreApiStoreOrderResource: public restbed::Resource
{
public:
StoreApiStoreOrderResource();
virtual ~StoreApiStoreOrderResource();
void POST_method_handler(const std::shared_ptr<restbed::Session> session);
};
}
}
}
}
#endif /* StoreApi_H_ */