@@ -28,7 +28,7 @@ public class PetApiController : Controller
28
28
[ HttpPost ]
29
29
[ Route ( "/pet" ) ]
30
30
[ SwaggerOperation ( "AddPet" ) ]
31
- public void AddPet ( [ FromBody ] Pet body )
31
+ public virtual void AddPet ( [ FromBody ] Pet body )
32
32
{
33
33
throw new NotImplementedException ( ) ;
34
34
}
@@ -44,7 +44,7 @@ public void AddPet([FromBody]Pet body)
44
44
[ HttpDelete ]
45
45
[ Route ( "/pet/{petId}" ) ]
46
46
[ SwaggerOperation ( "DeletePet" ) ]
47
- public void DeletePet ( [ FromRoute ] long ? petId , [ FromHeader ] string apiKey )
47
+ public virtual void DeletePet ( [ FromRoute ] long ? petId , [ FromHeader ] string apiKey )
48
48
{
49
49
throw new NotImplementedException ( ) ;
50
50
}
@@ -53,15 +53,15 @@ public void DeletePet([FromRoute]long? petId, [FromHeader]string apiKey)
53
53
/// <summary>
54
54
/// Finds Pets by status
55
55
/// </summary>
56
- /// <remarks>Multiple status values can be provided with comma separated strings</remarks>
56
+ /// <remarks>Multiple status values can be provided with comma seperated strings</remarks>
57
57
/// <param name="status">Status values that need to be considered for filter</param>
58
58
/// <response code="200">successful operation</response>
59
59
/// <response code="400">Invalid status value</response>
60
60
[ HttpGet ]
61
61
[ Route ( "/pet/findByStatus" ) ]
62
62
[ SwaggerOperation ( "FindPetsByStatus" ) ]
63
63
[ SwaggerResponse ( 200 , type : typeof ( List < Pet > ) ) ]
64
- public IActionResult FindPetsByStatus ( [ FromQuery ] List < string > status )
64
+ public virtual IActionResult FindPetsByStatus ( [ FromQuery ] List < string > status )
65
65
{
66
66
string exampleJson = null ;
67
67
@@ -75,15 +75,15 @@ public IActionResult FindPetsByStatus([FromQuery]List<string> status)
75
75
/// <summary>
76
76
/// Finds Pets by tags
77
77
/// </summary>
78
- /// <remarks>Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.</remarks>
78
+ /// <remarks>Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.</remarks>
79
79
/// <param name="tags">Tags to filter by</param>
80
80
/// <response code="200">successful operation</response>
81
81
/// <response code="400">Invalid tag value</response>
82
82
[ HttpGet ]
83
83
[ Route ( "/pet/findByTags" ) ]
84
84
[ SwaggerOperation ( "FindPetsByTags" ) ]
85
85
[ SwaggerResponse ( 200 , type : typeof ( List < Pet > ) ) ]
86
- public IActionResult FindPetsByTags ( [ FromQuery ] List < string > tags )
86
+ public virtual IActionResult FindPetsByTags ( [ FromQuery ] List < string > tags )
87
87
{
88
88
string exampleJson = null ;
89
89
@@ -97,16 +97,16 @@ public IActionResult FindPetsByTags([FromQuery]List<string> tags)
97
97
/// <summary>
98
98
/// Find pet by ID
99
99
/// </summary>
100
- /// <remarks>Returns a single pet</remarks>
101
- /// <param name="petId">ID of pet to return </param>
100
+ /// <remarks>Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions </remarks>
101
+ /// <param name="petId">ID of pet that needs to be fetched </param>
102
102
/// <response code="200">successful operation</response>
103
103
/// <response code="400">Invalid ID supplied</response>
104
104
/// <response code="404">Pet not found</response>
105
105
[ HttpGet ]
106
106
[ Route ( "/pet/{petId}" ) ]
107
107
[ SwaggerOperation ( "GetPetById" ) ]
108
108
[ SwaggerResponse ( 200 , type : typeof ( Pet ) ) ]
109
- public IActionResult GetPetById ( [ FromRoute ] long ? petId )
109
+ public virtual IActionResult GetPetById ( [ FromRoute ] long ? petId )
110
110
{
111
111
string exampleJson = null ;
112
112
@@ -128,7 +128,7 @@ public IActionResult GetPetById([FromRoute]long? petId)
128
128
[ HttpPut ]
129
129
[ Route ( "/pet" ) ]
130
130
[ SwaggerOperation ( "UpdatePet" ) ]
131
- public void UpdatePet ( [ FromBody ] Pet body )
131
+ public virtual void UpdatePet ( [ FromBody ] Pet body )
132
132
{
133
133
throw new NotImplementedException ( ) ;
134
134
}
@@ -145,7 +145,7 @@ public void UpdatePet([FromBody]Pet body)
145
145
[ HttpPost ]
146
146
[ Route ( "/pet/{petId}" ) ]
147
147
[ SwaggerOperation ( "UpdatePetWithForm" ) ]
148
- public void UpdatePetWithForm ( [ FromRoute ] long ? petId , [ FromForm ] string name , [ FromForm ] string status )
148
+ public virtual void UpdatePetWithForm ( [ FromRoute ] string petId , [ FromForm ] string name , [ FromForm ] string status )
149
149
{
150
150
throw new NotImplementedException ( ) ;
151
151
}
@@ -158,19 +158,13 @@ public void UpdatePetWithForm([FromRoute]long? petId, [FromForm]string name, [Fr
158
158
/// <param name="petId">ID of pet to update</param>
159
159
/// <param name="additionalMetadata">Additional data to pass to server</param>
160
160
/// <param name="file">file to upload</param>
161
- /// <response code="200 ">successful operation</response>
161
+ /// <response code="0 ">successful operation</response>
162
162
[ HttpPost ]
163
163
[ Route ( "/pet/{petId}/uploadImage" ) ]
164
164
[ SwaggerOperation ( "UploadFile" ) ]
165
- [ SwaggerResponse ( 200 , type : typeof ( ApiResponse ) ) ]
166
- public IActionResult UploadFile ( [ FromRoute ] long ? petId , [ FromForm ] string additionalMetadata , [ FromForm ] System . IO . Stream file )
165
+ public virtual void UploadFile ( [ FromRoute ] long ? petId , [ FromForm ] string additionalMetadata , [ FromForm ] System . IO . Stream file )
167
166
{
168
- string exampleJson = null ;
169
-
170
- var example = exampleJson != null
171
- ? JsonConvert . DeserializeObject < ApiResponse > ( exampleJson )
172
- : default ( ApiResponse ) ;
173
- return new ObjectResult ( example ) ;
167
+ throw new NotImplementedException ( ) ;
174
168
}
175
169
}
176
170
}
0 commit comments