forked from loafle/openapi-generator-original
fix comment in csharpdonet2.0
This commit is contained in:
parent
6b7439b9d9
commit
08756413dc
@ -159,6 +159,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="content">HTTP body (e.g. string, JSON).</param>
|
/// <param name="content">HTTP body (e.g. string, JSON).</param>
|
||||||
/// <param name="type">Object type.</param>
|
/// <param name="type">Object type.</param>
|
||||||
|
/// <param name="headers">HTTP headers.</param>
|
||||||
/// <returns>Object representation of the JSON string.</returns>
|
/// <returns>Object representation of the JSON string.</returns>
|
||||||
public object Deserialize(string content, Type type, IList<Parameter> headers=null)
|
public object Deserialize(string content, Type type, IList<Parameter> headers=null)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,6 @@ namespace {{packageName}}.Client {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The base path.</param>
|
|
||||||
public ApiException() {}
|
public ApiException() {}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -9,6 +9,9 @@ using {{packageName}}.Client;
|
|||||||
namespace {{packageName}}.Api
|
namespace {{packageName}}.Api
|
||||||
{
|
{
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
|
/// </summary>
|
||||||
public interface I{{classname}}
|
public interface I{{classname}}
|
||||||
{
|
{
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
@ -16,7 +19,7 @@ namespace {{packageName}}.Api
|
|||||||
/// {{summary}} {{notes}}
|
/// {{summary}} {{notes}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
||||||
{{/allParams}}/// <returns>{{#returnType}}{{{returnType}}}{{/returnType}}</returns>
|
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
@ -71,7 +74,7 @@ namespace {{packageName}}.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API client.
|
/// Gets or sets the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the ApiClient</param>
|
/// <value>An instance of the ApiClient</value>
|
||||||
public ApiClient ApiClient {get; set;}
|
public ApiClient ApiClient {get; set;}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
@ -79,7 +82,7 @@ namespace {{packageName}}.Api
|
|||||||
/// {{summary}} {{notes}}
|
/// {{summary}} {{notes}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
||||||
{{/allParams}}/// <returns>{{#returnType}}{{{returnType}}}{{/returnType}}</returns>
|
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||||
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
|
||||||
{
|
{
|
||||||
{{#allParams}}{{#required}}
|
{{#allParams}}{{#required}}
|
||||||
|
@ -7,6 +7,6 @@ vendor/RestSharp.Net2.1.1.11/lib/net20/RestSharp.Net2.dll,\
|
|||||||
System.Runtime.Serialization.dll \
|
System.Runtime.Serialization.dll \
|
||||||
-target:library \
|
-target:library \
|
||||||
-out:bin/{{packageName}}.dll \
|
-out:bin/{{packageName}}.dll \
|
||||||
-recurse:src/*.cs \
|
-recurse:'src/*.cs' \
|
||||||
-doc:bin/{{packageName}}.xml \
|
-doc:bin/{{packageName}}.xml \
|
||||||
-platform:anycpu
|
-platform:anycpu
|
||||||
|
@ -8,6 +8,9 @@ using IO.Swagger.Model;
|
|||||||
namespace IO.Swagger.Api
|
namespace IO.Swagger.Api
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
|
/// </summary>
|
||||||
public interface IPetApi
|
public interface IPetApi
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -29,14 +32,14 @@ namespace IO.Swagger.Api
|
|||||||
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
|
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <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</param>
|
||||||
/// <returns>List<Pet></returns>
|
/// <returns>List<Pet></returns>
|
||||||
List<Pet> FindPetsByStatus (List<string> status);
|
List<Pet> FindPetsByStatus (List<string> status);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="tags">Tags to filter by</param>
|
/// <param name="tags">Tags to filter by</param>
|
||||||
/// <returns>List<Pet></returns>
|
/// <returns>List<Pet></returns>
|
||||||
List<Pet> FindPetsByTags (List<string> tags);
|
List<Pet> FindPetsByTags (List<string> tags);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -124,7 +127,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API client.
|
/// Gets or sets the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the ApiClient</param>
|
/// <value>An instance of the ApiClient</value>
|
||||||
public ApiClient ApiClient {get; set;}
|
public ApiClient ApiClient {get; set;}
|
||||||
|
|
||||||
|
|
||||||
@ -212,7 +215,7 @@ namespace IO.Swagger.Api
|
|||||||
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
|
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <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</param>
|
||||||
/// <returns>List<Pet></returns>
|
/// <returns>List<Pet></returns>
|
||||||
public List<Pet> FindPetsByStatus (List<string> status)
|
public List<Pet> FindPetsByStatus (List<string> status)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -252,7 +255,7 @@ namespace IO.Swagger.Api
|
|||||||
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="tags">Tags to filter by</param>
|
/// <param name="tags">Tags to filter by</param>
|
||||||
/// <returns>List<Pet></returns>
|
/// <returns>List<Pet></returns>
|
||||||
public List<Pet> FindPetsByTags (List<string> tags)
|
public List<Pet> FindPetsByTags (List<string> tags)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,13 +8,16 @@ using IO.Swagger.Model;
|
|||||||
namespace IO.Swagger.Api
|
namespace IO.Swagger.Api
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
|
/// </summary>
|
||||||
public interface IStoreApi
|
public interface IStoreApi
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Dictionary<String, int?></returns>
|
/// <returns>Dictionary<String, int?></returns>
|
||||||
Dictionary<String, int?> GetInventory ();
|
Dictionary<String, int?> GetInventory ();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -90,14 +93,14 @@ namespace IO.Swagger.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API client.
|
/// Gets or sets the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the ApiClient</param>
|
/// <value>An instance of the ApiClient</value>
|
||||||
public ApiClient ApiClient {get; set;}
|
public ApiClient ApiClient {get; set;}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns pet inventories by status Returns a map of status codes to quantities
|
/// Returns pet inventories by status Returns a map of status codes to quantities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Dictionary<String, int?></returns>
|
/// <returns>Dictionary<String, int?></returns>
|
||||||
public Dictionary<String, int?> GetInventory ()
|
public Dictionary<String, int?> GetInventory ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ using IO.Swagger.Model;
|
|||||||
namespace IO.Swagger.Api
|
namespace IO.Swagger.Api
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
|
/// </summary>
|
||||||
public interface IUserApi
|
public interface IUserApi
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -120,7 +123,7 @@ namespace IO.Swagger.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API client.
|
/// Gets or sets the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the ApiClient</param>
|
/// <value>An instance of the ApiClient</value>
|
||||||
public ApiClient ApiClient {get; set;}
|
public ApiClient ApiClient {get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,6 +159,7 @@ namespace IO.Swagger.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="content">HTTP body (e.g. string, JSON).</param>
|
/// <param name="content">HTTP body (e.g. string, JSON).</param>
|
||||||
/// <param name="type">Object type.</param>
|
/// <param name="type">Object type.</param>
|
||||||
|
/// <param name="headers">HTTP headers.</param>
|
||||||
/// <returns>Object representation of the JSON string.</returns>
|
/// <returns>Object representation of the JSON string.</returns>
|
||||||
public object Deserialize(string content, Type type, IList<Parameter> headers=null)
|
public object Deserialize(string content, Type type, IList<Parameter> headers=null)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,6 @@ namespace IO.Swagger.Client {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
/// Initializes a new instance of the <see cref="ApiException"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="basePath">The base path.</param>
|
|
||||||
public ApiException() {}
|
public ApiException() {}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user