mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 00:07:06 +00:00
remove trailing space in cpprest, update samples
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Swagger Petstore
|
||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||
* 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@wordnik.com
|
||||
* Contact: apiteam@swagger.io
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
@@ -38,7 +38,13 @@ UserApi::~UserApi()
|
||||
|
||||
pplx::task<void> UserApi::createUser(std::shared_ptr<User> body)
|
||||
{
|
||||
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == nullptr)
|
||||
{
|
||||
throw ApiException(400, U("Missing required parameter 'body' when calling UserApi->createUser"));
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user");
|
||||
@@ -49,8 +55,8 @@ pplx::task<void> UserApi::createUser(std::shared_ptr<User> body)
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -150,7 +156,7 @@ pplx::task<void> UserApi::createUser(std::shared_ptr<User> body)
|
||||
}
|
||||
pplx::task<void> UserApi::createUsersWithArrayInput(std::vector<std::shared_ptr<User>> body)
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/createWithArray");
|
||||
@@ -161,8 +167,8 @@ pplx::task<void> UserApi::createUsersWithArrayInput(std::vector<std::shared_ptr<
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -275,7 +281,7 @@ pplx::task<void> UserApi::createUsersWithArrayInput(std::vector<std::shared_ptr<
|
||||
}
|
||||
pplx::task<void> UserApi::createUsersWithListInput(std::vector<std::shared_ptr<User>> body)
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/createWithList");
|
||||
@@ -286,8 +292,8 @@ pplx::task<void> UserApi::createUsersWithListInput(std::vector<std::shared_ptr<U
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -400,7 +406,7 @@ pplx::task<void> UserApi::createUsersWithListInput(std::vector<std::shared_ptr<U
|
||||
}
|
||||
pplx::task<void> UserApi::deleteUser(utility::string_t username)
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/{username}");
|
||||
@@ -412,8 +418,8 @@ pplx::task<void> UserApi::deleteUser(utility::string_t username)
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -500,7 +506,7 @@ pplx::task<void> UserApi::deleteUser(utility::string_t username)
|
||||
}
|
||||
pplx::task<std::shared_ptr<User>> UserApi::getUserByName(utility::string_t username)
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/{username}");
|
||||
@@ -512,8 +518,8 @@ pplx::task<std::shared_ptr<User>> UserApi::getUserByName(utility::string_t usern
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -618,7 +624,7 @@ pplx::task<std::shared_ptr<User>> UserApi::getUserByName(utility::string_t usern
|
||||
}
|
||||
pplx::task<utility::string_t> UserApi::loginUser(utility::string_t username, utility::string_t password)
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/login");
|
||||
@@ -629,8 +635,8 @@ pplx::task<utility::string_t> UserApi::loginUser(utility::string_t username, uti
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -753,7 +759,7 @@ pplx::task<utility::string_t> UserApi::loginUser(utility::string_t username, uti
|
||||
}
|
||||
pplx::task<void> UserApi::logoutUser()
|
||||
{
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/logout");
|
||||
@@ -764,8 +770,8 @@ pplx::task<void> UserApi::logoutUser()
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
@@ -852,7 +858,13 @@ pplx::task<void> UserApi::logoutUser()
|
||||
}
|
||||
pplx::task<void> UserApi::updateUser(utility::string_t username, std::shared_ptr<User> body)
|
||||
{
|
||||
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == nullptr)
|
||||
{
|
||||
throw ApiException(400, U("Missing required parameter 'body' when calling UserApi->updateUser"));
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
|
||||
utility::string_t path = U("/user/{username}");
|
||||
@@ -864,8 +876,8 @@ pplx::task<void> UserApi::updateUser(utility::string_t username, std::shared_ptr
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> fileParams;
|
||||
|
||||
std::unordered_set<utility::string_t> responseHttpContentTypes;
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
responseHttpContentTypes.insert( U("application/xml") );
|
||||
responseHttpContentTypes.insert( U("application/json") );
|
||||
|
||||
utility::string_t responseHttpContentType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user