@@ -306,7 +306,17 @@ public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
306
306
var formParams = new Dictionary < String , String > ( ) ;
307
307
var fileParams = new Dictionary < String , FileParameter > ( ) ;
308
308
String postBody = null ;
309
-
309
+
310
+ // to determine the Accept header
311
+ String [ ] http_header_accepts = new String [ ] {
312
+ "application/json" , "application/xml"
313
+ } ;
314
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
315
+ if ( http_header_accept != null )
316
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
317
+
318
+ // set "format" to json by default
319
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
310
320
pathParams . Add ( "format" , "json" ) ;
311
321
312
322
@@ -394,7 +404,17 @@ public async System.Threading.Tasks.Task AddPetAsync (Pet body)
394
404
var formParams = new Dictionary < String , String > ( ) ;
395
405
var fileParams = new Dictionary < String , FileParameter > ( ) ;
396
406
String postBody = null ;
397
-
407
+
408
+ // to determine the Accept header
409
+ String [ ] http_header_accepts = new String [ ] {
410
+ "application/json" , "application/xml"
411
+ } ;
412
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
413
+ if ( http_header_accept != null )
414
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
415
+
416
+ // set "format" to json by default
417
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
398
418
pathParams . Add ( "format" , "json" ) ;
399
419
400
420
@@ -482,7 +502,17 @@ public async System.Threading.Tasks.Task<List<Pet>> FindPetsByStatusAsync (List<
482
502
var formParams = new Dictionary < String , String > ( ) ;
483
503
var fileParams = new Dictionary < String , FileParameter > ( ) ;
484
504
String postBody = null ;
485
-
505
+
506
+ // to determine the Accept header
507
+ String [ ] http_header_accepts = new String [ ] {
508
+ "application/json" , "application/xml"
509
+ } ;
510
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
511
+ if ( http_header_accept != null )
512
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
513
+
514
+ // set "format" to json by default
515
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
486
516
pathParams . Add ( "format" , "json" ) ;
487
517
488
518
if ( status != null ) queryParams . Add ( "status" , ApiClient . ParameterToString ( status ) ) ; // query parameter
@@ -569,7 +599,17 @@ public async System.Threading.Tasks.Task<List<Pet>> FindPetsByTagsAsync (List<st
569
599
var formParams = new Dictionary < String , String > ( ) ;
570
600
var fileParams = new Dictionary < String , FileParameter > ( ) ;
571
601
String postBody = null ;
572
-
602
+
603
+ // to determine the Accept header
604
+ String [ ] http_header_accepts = new String [ ] {
605
+ "application/json" , "application/xml"
606
+ } ;
607
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
608
+ if ( http_header_accept != null )
609
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
610
+
611
+ // set "format" to json by default
612
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
573
613
pathParams . Add ( "format" , "json" ) ;
574
614
575
615
if ( tags != null ) queryParams . Add ( "tags" , ApiClient . ParameterToString ( tags ) ) ; // query parameter
@@ -661,7 +701,17 @@ public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId)
661
701
var formParams = new Dictionary < String , String > ( ) ;
662
702
var fileParams = new Dictionary < String , FileParameter > ( ) ;
663
703
String postBody = null ;
664
-
704
+
705
+ // to determine the Accept header
706
+ String [ ] http_header_accepts = new String [ ] {
707
+ "application/json" , "application/xml"
708
+ } ;
709
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
710
+ if ( http_header_accept != null )
711
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
712
+
713
+ // set "format" to json by default
714
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
665
715
pathParams . Add ( "format" , "json" ) ;
666
716
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
667
717
@@ -759,7 +809,17 @@ public async System.Threading.Tasks.Task UpdatePetWithFormAsync (string petId, s
759
809
var formParams = new Dictionary < String , String > ( ) ;
760
810
var fileParams = new Dictionary < String , FileParameter > ( ) ;
761
811
String postBody = null ;
762
-
812
+
813
+ // to determine the Accept header
814
+ String [ ] http_header_accepts = new String [ ] {
815
+ "application/json" , "application/xml"
816
+ } ;
817
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
818
+ if ( http_header_accept != null )
819
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
820
+
821
+ // set "format" to json by default
822
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
763
823
pathParams . Add ( "format" , "json" ) ;
764
824
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
765
825
@@ -857,7 +917,17 @@ public async System.Threading.Tasks.Task DeletePetAsync (long? petId, string api
857
917
var formParams = new Dictionary < String , String > ( ) ;
858
918
var fileParams = new Dictionary < String , FileParameter > ( ) ;
859
919
String postBody = null ;
860
-
920
+
921
+ // to determine the Accept header
922
+ String [ ] http_header_accepts = new String [ ] {
923
+ "application/json" , "application/xml"
924
+ } ;
925
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
926
+ if ( http_header_accept != null )
927
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
928
+
929
+ // set "format" to json by default
930
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
861
931
pathParams . Add ( "format" , "json" ) ;
862
932
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
863
933
@@ -957,7 +1027,17 @@ public async System.Threading.Tasks.Task UploadFileAsync (long? petId, string ad
957
1027
var formParams = new Dictionary < String , String > ( ) ;
958
1028
var fileParams = new Dictionary < String , FileParameter > ( ) ;
959
1029
String postBody = null ;
960
-
1030
+
1031
+ // to determine the Accept header
1032
+ String [ ] http_header_accepts = new String [ ] {
1033
+ "application/json" , "application/xml"
1034
+ } ;
1035
+ String http_header_accept = ApiClient . SelectHeaderAccept ( http_header_accepts ) ;
1036
+ if ( http_header_accept != null )
1037
+ headerParams . Add ( "Accept" , ApiClient . SelectHeaderAccept ( http_header_accepts ) ) ;
1038
+
1039
+ // set "format" to json by default
1040
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
961
1041
pathParams . Add ( "format" , "json" ) ;
962
1042
if ( petId != null ) pathParams . Add ( "petId" , ApiClient . ParameterToString ( petId ) ) ; // path parameter
963
1043
0 commit comments