forked from loafle/openapi-generator-original
[cpp-restbed] Added "out-of-the-box" functionality (#4759)
* Added cpp-restbed "out-of-the-box" functionality * handling class dependencies * added method override to clean interfaces of ambiguity * added default values for shared pointers * fixed _name and name parameters generating the same getters and setters * updated enum handling * updated Petstore samples * updated templates for automated object generation * fix whitespace * removed model initialisation * added model brace initialisation
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.2.0-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator unset.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -28,13 +28,13 @@ using namespace org::openapitools::server::model;
|
||||
StoreApi::StoreApi() {
|
||||
std::shared_ptr<StoreApiStoreOrderOrderIdResource> spStoreApiStoreOrderOrderIdResource = std::make_shared<StoreApiStoreOrderOrderIdResource>();
|
||||
this->publish(spStoreApiStoreOrderOrderIdResource);
|
||||
|
||||
|
||||
std::shared_ptr<StoreApiStoreInventoryResource> spStoreApiStoreInventoryResource = std::make_shared<StoreApiStoreInventoryResource>();
|
||||
this->publish(spStoreApiStoreInventoryResource);
|
||||
|
||||
|
||||
std::shared_ptr<StoreApiStoreOrderResource> spStoreApiStoreOrderResource = std::make_shared<StoreApiStoreOrderResource>();
|
||||
this->publish(spStoreApiStoreOrderResource);
|
||||
|
||||
|
||||
}
|
||||
|
||||
StoreApi::~StoreApi() {}
|
||||
@@ -60,6 +60,9 @@ StoreApiStoreOrderOrderIdResource::StoreApiStoreOrderOrderIdResource()
|
||||
this->set_method_handler("GET",
|
||||
std::bind(&StoreApiStoreOrderOrderIdResource::GET_method_handler, this,
|
||||
std::placeholders::_1));
|
||||
|
||||
orderId = "";
|
||||
|
||||
}
|
||||
|
||||
StoreApiStoreOrderOrderIdResource::~StoreApiStoreOrderOrderIdResource()
|
||||
@@ -154,6 +157,8 @@ StoreApiStoreInventoryResource::StoreApiStoreInventoryResource()
|
||||
this->set_method_handler("GET",
|
||||
std::bind(&StoreApiStoreInventoryResource::GET_method_handler, this,
|
||||
std::placeholders::_1));
|
||||
|
||||
|
||||
}
|
||||
|
||||
StoreApiStoreInventoryResource::~StoreApiStoreInventoryResource()
|
||||
@@ -201,6 +206,9 @@ StoreApiStoreOrderResource::StoreApiStoreOrderResource()
|
||||
this->set_method_handler("POST",
|
||||
std::bind(&StoreApiStoreOrderResource::POST_method_handler, this,
|
||||
std::placeholders::_1));
|
||||
|
||||
body = std::make_shared<Order>();
|
||||
|
||||
}
|
||||
|
||||
StoreApiStoreOrderResource::~StoreApiStoreOrderResource()
|
||||
|
||||
Reference in New Issue
Block a user