1
1
package io .swagger .api ;
2
2
3
3
import io .swagger .model .Pet ;
4
- import io .swagger .model .InlineResponse200 ;
4
+ import io .swagger .model .ApiResponse ;
5
5
import java .io .File ;
6
6
7
7
import javax .ws .rs .*;
@@ -14,57 +14,42 @@ public interface PetApi {
14
14
@ POST
15
15
@ Path ("/pet" )
16
16
@ Consumes ({ "application/json" , "application/xml" })
17
- @ Produces ({ "application/json " , "application/xml " })
17
+ @ Produces ({ "application/xml " , "application/json " })
18
18
public Response addPet (Pet body );
19
- @ POST
20
- @ Path ("/pet?testing_byte_array=true" )
21
- @ Consumes ({ "application/json" , "application/xml" })
22
- @ Produces ({ "application/json" , "application/xml" })
23
- public Response addPetUsingByteArray (byte [] body );
24
19
@ DELETE
25
20
@ Path ("/pet/{petId}" )
26
21
27
- @ Produces ({ "application/json " , "application/xml " })
22
+ @ Produces ({ "application/xml " , "application/json " })
28
23
public Response deletePet (@ PathParam ("petId" ) Long petId ,@ HeaderParam ("api_key" ) String apiKey );
29
24
@ GET
30
25
@ Path ("/pet/findByStatus" )
31
26
32
- @ Produces ({ "application/json " , "application/xml " })
27
+ @ Produces ({ "application/xml " , "application/json " })
33
28
public Response findPetsByStatus (@ QueryParam ("status" ) List <String > status );
34
29
@ GET
35
30
@ Path ("/pet/findByTags" )
36
31
37
- @ Produces ({ "application/json " , "application/xml " })
32
+ @ Produces ({ "application/xml " , "application/json " })
38
33
public Response findPetsByTags (@ QueryParam ("tags" ) List <String > tags );
39
34
@ GET
40
35
@ Path ("/pet/{petId}" )
41
36
42
- @ Produces ({ "application/json " , "application/xml " })
37
+ @ Produces ({ "application/xml " , "application/json " })
43
38
public Response getPetById (@ PathParam ("petId" ) Long petId );
44
- @ GET
45
- @ Path ("/pet/{petId}?response=inline_arbitrary_object" )
46
-
47
- @ Produces ({ "application/json" , "application/xml" })
48
- public Response getPetByIdInObject (@ PathParam ("petId" ) Long petId );
49
- @ GET
50
- @ Path ("/pet/{petId}?testing_byte_array=true" )
51
-
52
- @ Produces ({ "application/json" , "application/xml" })
53
- public Response petPetIdtestingByteArraytrueGet (@ PathParam ("petId" ) Long petId );
54
39
@ PUT
55
40
@ Path ("/pet" )
56
41
@ Consumes ({ "application/json" , "application/xml" })
57
- @ Produces ({ "application/json " , "application/xml " })
42
+ @ Produces ({ "application/xml " , "application/json " })
58
43
public Response updatePet (Pet body );
59
44
@ POST
60
45
@ Path ("/pet/{petId}" )
61
46
@ Consumes ({ "application/x-www-form-urlencoded" })
62
- @ Produces ({ "application/json " , "application/xml " })
63
- public Response updatePetWithForm (@ PathParam ("petId" ) String petId ,@ Multipart (value = "name" , required = false ) String name ,@ Multipart (value = "status" , required = false ) String status );
47
+ @ Produces ({ "application/xml " , "application/json " })
48
+ public Response updatePetWithForm (@ PathParam ("petId" ) Long petId ,@ Multipart (value = "name" , required = false ) String name ,@ Multipart (value = "status" , required = false ) String status );
64
49
@ POST
65
50
@ Path ("/pet/{petId}/uploadImage" )
66
51
@ Consumes ({ "multipart/form-data" })
67
- @ Produces ({ "application/json" , "application/xml" })
52
+ @ Produces ({ "application/json" })
68
53
public Response uploadFile (@ PathParam ("petId" ) Long petId ,@ Multipart (value = "additionalMetadata" , required = false ) String additionalMetadata , @ Multipart (value = "file" , required = false ) InputStream fileInputStream ,
69
54
@ Multipart (value = "file" , required = false ) Attachment fileDetail );
70
55
}
0 commit comments