[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:
AlexG
2020-01-02 13:36:22 +01:00
committed by William Cheng
parent 5cc5fbe76a
commit 1cb99e3497
24 changed files with 582 additions and 189 deletions

View File

@@ -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.
*/
@@ -73,6 +73,8 @@ private:
std::shared_ptr<User> const &
)> handler_POST_;
std::shared_ptr<User> body;
};
/// <summary>
@@ -100,6 +102,8 @@ private:
std::vector<std::shared_ptr<User>> const &
)> handler_POST_;
std::vector<std::shared_ptr<User>> body;
};
/// <summary>
@@ -127,6 +131,8 @@ private:
std::vector<std::shared_ptr<User>> const &
)> handler_POST_;
std::vector<std::shared_ptr<User>> body;
};
/// <summary>
@@ -172,6 +178,8 @@ private:
std::function<std::pair<int, std::string>(
std::string const &, std::shared_ptr<User> const &
)> handler_PUT_;
std::string username;
};
/// <summary>
@@ -199,6 +207,9 @@ private:
std::string const &, std::string const &
)> handler_GET_;
std::string username;
std::string password;
};
/// <summary>
@@ -226,6 +237,7 @@ private:
)> handler_GET_;
};