forked from loafle/openapi-generator-original
[cpp-restbed-server] make the restbed SERVER generator more extensible (#7679)
* Simple fix to allow users to override the Api class and set handlers * fix definition order * Regen petstore example files
This commit is contained in:
committed by
GitHub
parent
3d6bd48b67
commit
4860eb65e1
@@ -5,7 +5,7 @@
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator unset.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 5.0.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -45,6 +45,11 @@ public:
|
||||
~StoreApi();
|
||||
void startService(int const& port);
|
||||
void stopService();
|
||||
|
||||
protected:
|
||||
std::shared_ptr<StoreApiStoreOrderOrderIdResource> m_spStoreApiStoreOrderOrderIdResource;
|
||||
std::shared_ptr<StoreApiStoreInventoryResource> m_spStoreApiStoreInventoryResource;
|
||||
std::shared_ptr<StoreApiStoreOrderResource> m_spStoreApiStoreOrderResource;
|
||||
};
|
||||
|
||||
|
||||
@@ -83,7 +88,7 @@ private:
|
||||
int64_t const &
|
||||
)> handler_GET_;
|
||||
|
||||
std::string orderId;
|
||||
std::string orderId{};
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
@@ -140,7 +145,7 @@ private:
|
||||
)> handler_POST_;
|
||||
|
||||
|
||||
std::shared_ptr<Order> body;
|
||||
std::shared_ptr<Order> body{};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user