forked from loafle/openapi-generator-original
* Fixed errors with cpprest client generation when generating a client that uses arrays of primitive types (vector) and file responses (HttpContent). * Updated the petstore sample using script. * Removed debug code. * Removed extra newline to match master. * Fixed binary file handling in cpprest. Updated petstore samples. * Update readme to add Cummins to list * Cleaning up for pull. Removing unnecessary changes. * Fixing petstore * Fixing error in build. * Fixed error in stream copy for binary data * Replaced tab with 4 spaces in all modified files. Replaced tab with 4 spaces in all modified files.
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 [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.
|
||||
* 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
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
* Contact: apiteam@swagger.io
|
||||
* Contact: apiteam@wordnik.com
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
@@ -36,7 +36,6 @@
|
||||
|
||||
#include "Pet.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "ApiResponse.h"
|
||||
#include "HttpContent.h"
|
||||
|
||||
namespace io {
|
||||
@@ -57,7 +56,7 @@ public:
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
pplx::task<void> addPet(std::shared_ptr<Pet> body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
@@ -73,7 +72,7 @@ public:
|
||||
/// <remarks>
|
||||
/// Multiple status values can be provided with comma separated strings
|
||||
/// </remarks>
|
||||
/// <param name="status">Status values that need to be considered for filter</param>
|
||||
/// <param name="status">Status values that need to be considered for filter (optional, default to available)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Pet>>> findPetsByStatus(std::vector<utility::string_t> status);
|
||||
/// <summary>
|
||||
/// Finds Pets by tags
|
||||
@@ -81,15 +80,15 @@ public:
|
||||
/// <remarks>
|
||||
/// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
/// </remarks>
|
||||
/// <param name="tags">Tags to filter by</param>
|
||||
/// <param name="tags">Tags to filter by (optional)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Pet>>> findPetsByTags(std::vector<utility::string_t> tags);
|
||||
/// <summary>
|
||||
/// Find pet by ID
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Returns a single pet
|
||||
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||
/// </remarks>
|
||||
/// <param name="petId">ID of pet to return</param>
|
||||
/// <param name="petId">ID of pet that needs to be fetched</param>
|
||||
pplx::task<std::shared_ptr<Pet>> getPetById(int64_t petId);
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@@ -97,7 +96,7 @@ public:
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store (optional)</param>
|
||||
pplx::task<void> updatePet(std::shared_ptr<Pet> body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
@@ -106,7 +105,7 @@ public:
|
||||
///
|
||||
/// </remarks>
|
||||
/// <param name="petId">ID of pet that needs to be updated</param>/// <param name="name">Updated name of the pet (optional)</param>/// <param name="status">Updated status of the pet (optional)</param>
|
||||
pplx::task<void> updatePetWithForm(int64_t petId, utility::string_t name, utility::string_t status);
|
||||
pplx::task<void> updatePetWithForm(utility::string_t petId, utility::string_t name, utility::string_t status);
|
||||
/// <summary>
|
||||
/// uploads an image
|
||||
/// </summary>
|
||||
@@ -114,7 +113,7 @@ public:
|
||||
///
|
||||
/// </remarks>
|
||||
/// <param name="petId">ID of pet to update</param>/// <param name="additionalMetadata">Additional data to pass to server (optional)</param>/// <param name="file">file to upload (optional)</param>
|
||||
pplx::task<std::shared_ptr<ApiResponse>> uploadFile(int64_t petId, utility::string_t additionalMetadata, std::shared_ptr<HttpContent> file);
|
||||
pplx::task<void> uploadFile(int64_t petId, utility::string_t additionalMetadata, std::shared_ptr<HttpContent> file);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ApiClient> m_ApiClient;
|
||||
|
||||
Reference in New Issue
Block a user