8
8
namespace IO . Swagger . Api
9
9
{
10
10
11
+ /// <summary>
12
+ /// Represents a collection of functions to interact with the API endpoints
13
+ /// </summary>
11
14
public interface IPetApi
12
15
{
13
16
@@ -43,28 +46,28 @@ public interface IPetApi
43
46
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
44
47
/// </summary>
45
48
/// <param name="status">Status values that need to be considered for filter</param>
46
- /// <returns>List<Pet> </returns>
49
+ /// <returns></returns>
47
50
List < Pet > FindPetsByStatus ( List < string > status ) ;
48
51
49
52
/// <summary>
50
53
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
51
54
/// </summary>
52
55
/// <param name="status">Status values that need to be considered for filter</param>
53
- /// <returns>List<Pet> </returns>
56
+ /// <returns></returns>
54
57
System . Threading . Tasks . Task < List < Pet > > FindPetsByStatusAsync ( List < string > status ) ;
55
58
56
59
/// <summary>
57
60
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
58
61
/// </summary>
59
62
/// <param name="tags">Tags to filter by</param>
60
- /// <returns>List<Pet> </returns>
63
+ /// <returns></returns>
61
64
List < Pet > FindPetsByTags ( List < string > tags ) ;
62
65
63
66
/// <summary>
64
67
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
65
68
/// </summary>
66
69
/// <param name="tags">Tags to filter by</param>
67
- /// <returns>List<Pet> </returns>
70
+ /// <returns></returns>
68
71
System . Threading . Tasks . Task < List < Pet > > FindPetsByTagsAsync ( List < string > tags ) ;
69
72
70
73
/// <summary>
@@ -184,7 +187,7 @@ public String GetBasePath()
184
187
/// <summary>
185
188
/// Gets or sets the API client.
186
189
/// </summary>
187
- /// <value>An instance of the ApiClient</param >
190
+ /// <value>An instance of the ApiClient</value >
188
191
public ApiClient ApiClient { get ; set ; }
189
192
190
193
@@ -206,6 +209,16 @@ public void UpdatePet (Pet body)
206
209
var fileParams = new Dictionary < String , FileParameter > ( ) ;
207
210
String postBody = null ;
208
211
212
+ // to determine the Accept header
213
+ String [ ] http_header_accepts = new String [ ] {
214
+ "application/json" , "application/xml"
215
+ } ;
216
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
217
+ if ( http_header_accept != null )
218
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
219
+
220
+ // set "format" to json by default
221
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
209
222
pathParams . Add ( "format" , "json" ) ;
210
223
211
224
@@ -284,6 +297,16 @@ public void AddPet (Pet body)
284
297
var fileParams = new Dictionary < String , FileParameter > ( ) ;
285
298
String postBody = null ;
286
299
300
+ // to determine the Accept header
301
+ String [ ] http_header_accepts = new String [ ] {
302
+ "application/json" , "application/xml"
303
+ } ;
304
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
305
+ if ( http_header_accept != null )
306
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
307
+
308
+ // set "format" to json by default
309
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
287
310
pathParams . Add ( "format" , "json" ) ;
288
311
289
312
@@ -348,7 +371,7 @@ public async System.Threading.Tasks.Task AddPetAsync (Pet body)
348
371
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
349
372
/// </summary>
350
373
/// <param name="status">Status values that need to be considered for filter</param>
351
- /// <returns>List<Pet> </returns>
374
+ /// <returns></returns>
352
375
public List < Pet > FindPetsByStatus ( List < string > status )
353
376
{
354
377
@@ -362,6 +385,16 @@ public List<Pet> FindPetsByStatus (List<string> status)
362
385
var fileParams = new Dictionary < String , FileParameter > ( ) ;
363
386
String postBody = null ;
364
387
388
+ // to determine the Accept header
389
+ String [ ] http_header_accepts = new String [ ] {
390
+ "application/json" , "application/xml"
391
+ } ;
392
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
393
+ if ( http_header_accept != null )
394
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
395
+
396
+ // set "format" to json by default
397
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
365
398
pathParams . Add ( "format" , "json" ) ;
366
399
367
400
if ( status != null ) queryParams . Add ( "status" , ApiClient . ParameterToString ( status ) ) ; // query parameter
@@ -388,7 +421,7 @@ public List<Pet> FindPetsByStatus (List<string> status)
388
421
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
389
422
/// </summary>
390
423
/// <param name="status">Status values that need to be considered for filter</param>
391
- /// <returns>List<Pet> </returns>
424
+ /// <returns></returns>
392
425
public async System . Threading . Tasks . Task < List < Pet > > FindPetsByStatusAsync ( List < string > status )
393
426
{
394
427
@@ -425,7 +458,7 @@ public async System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<
425
458
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
426
459
/// </summary>
427
460
/// <param name="tags">Tags to filter by</param>
428
- /// <returns>List<Pet> </returns>
461
+ /// <returns></returns>
429
462
public List < Pet > FindPetsByTags ( List < string > tags )
430
463
{
431
464
@@ -439,6 +472,16 @@ public List<Pet> FindPetsByTags (List<string> tags)
439
472
var fileParams = new Dictionary < String , FileParameter > ( ) ;
440
473
String postBody = null ;
441
474
475
+ // to determine the Accept header
476
+ String [ ] http_header_accepts = new String [ ] {
477
+ "application/json" , "application/xml"
478
+ } ;
479
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
480
+ if ( http_header_accept != null )
481
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
482
+
483
+ // set "format" to json by default
484
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
442
485
pathParams . Add ( "format" , "json" ) ;
443
486
444
487
if ( tags != null ) queryParams . Add ( "tags" , ApiClient . ParameterToString ( tags ) ) ; // query parameter
@@ -465,7 +508,7 @@ public List<Pet> FindPetsByTags (List<string> tags)
465
508
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
466
509
/// </summary>
467
510
/// <param name="tags">Tags to filter by</param>
468
- /// <returns>List<Pet> </returns>
511
+ /// <returns></returns>
469
512
public async System . Threading . Tasks . Task < List < Pet > > FindPetsByTagsAsync ( List < string > tags )
470
513
{
471
514
@@ -519,6 +562,16 @@ public Pet GetPetById (long? petId)
519
562
var fileParams = new Dictionary < String , FileParameter > ( ) ;
520
563
String postBody = null ;
521
564
565
+ // to determine the Accept header
566
+ String [ ] http_header_accepts = new String [ ] {
567
+ "application/json" , "application/xml"
568
+ } ;
569
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
570
+ if ( http_header_accept != null )
571
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
572
+
573
+ // set "format" to json by default
574
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
522
575
pathParams . Add ( "format" , "json" ) ;
523
576
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
524
577
@@ -603,6 +656,16 @@ public void UpdatePetWithForm (string petId, string name, string status)
603
656
var fileParams = new Dictionary < String , FileParameter > ( ) ;
604
657
String postBody = null ;
605
658
659
+ // to determine the Accept header
660
+ String [ ] http_header_accepts = new String [ ] {
661
+ "application/json" , "application/xml"
662
+ } ;
663
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
664
+ if ( http_header_accept != null )
665
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
666
+
667
+ // set "format" to json by default
668
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
606
669
pathParams . Add ( "format" , "json" ) ;
607
670
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
608
671
@@ -693,6 +756,16 @@ public void DeletePet (long? petId, string apiKey)
693
756
var fileParams = new Dictionary < String , FileParameter > ( ) ;
694
757
String postBody = null ;
695
758
759
+ // to determine the Accept header
760
+ String [ ] http_header_accepts = new String [ ] {
761
+ "application/json" , "application/xml"
762
+ } ;
763
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
764
+ if ( http_header_accept != null )
765
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
766
+
767
+ // set "format" to json by default
768
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
696
769
pathParams . Add ( "format" , "json" ) ;
697
770
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
698
771
@@ -781,6 +854,16 @@ public void UploadFile (long? petId, string additionalMetadata, Stream file)
781
854
var fileParams = new Dictionary < String , FileParameter > ( ) ;
782
855
String postBody = null ;
783
856
857
+ // to determine the Accept header
858
+ String [ ] http_header_accepts = new String [ ] {
859
+ "application/json" , "application/xml"
860
+ } ;
861
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
862
+ if ( http_header_accept != null )
863
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
864
+
865
+ // set "format" to json by default
866
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
784
867
pathParams . Add ( "format" , "json" ) ;
785
868
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
786
869
0 commit comments