/** * 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.3.0-SNAPSHOT. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /* * PetApi.h * * */ #ifndef PetApi_H_ #define PetApi_H_ #include #include #include #include #include "ApiResponse.h" #include "Pet.h" #include namespace io { namespace swagger { namespace server { namespace api { using namespace io::swagger::server::model; class PetApi: public restbed::Service { public: PetApi(); ~PetApi(); void startService(int const& port); void stopService(); }; /// /// Add a new pet to the store /// /// /// /// class PetApiPetResource: public restbed::Resource { public: PetApiPetResource(); virtual ~PetApiPetResource(); void POST_method_handler(const std::shared_ptr session); void PUT_method_handler(const std::shared_ptr session); }; /// /// Deletes a pet /// /// /// /// class PetApiPetPetIdResource: public restbed::Resource { public: PetApiPetPetIdResource(); virtual ~PetApiPetPetIdResource(); void DELETE_method_handler(const std::shared_ptr session); void GET_method_handler(const std::shared_ptr session); void POST_method_handler(const std::shared_ptr session); }; /// /// Finds Pets by status /// /// /// Multiple status values can be provided with comma separated strings /// class PetApiPetFindByStatusResource: public restbed::Resource { public: PetApiPetFindByStatusResource(); virtual ~PetApiPetFindByStatusResource(); void GET_method_handler(const std::shared_ptr session); }; /// /// Finds Pets by tags /// /// /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. /// class PetApiPetFindByTagsResource: public restbed::Resource { public: PetApiPetFindByTagsResource(); virtual ~PetApiPetFindByTagsResource(); void GET_method_handler(const std::shared_ptr session); }; /// /// uploads an image /// /// /// /// class PetApiPetPetIdUploadImageResource: public restbed::Resource { public: PetApiPetPetIdUploadImageResource(); virtual ~PetApiPetPetIdUploadImageResource(); void POST_method_handler(const std::shared_ptr session); }; } } } } #endif /* PetApi_H_ */