@@ -20,6 +20,7 @@ public interface AnimalApi extends ApiClient.Api {
20
20
*/
21
21
@ RequestLine ("POST /animal" )
22
22
@ Headers ({
23
+ "Content-Type: application/json" ,
23
24
"Accept: */*" ,
24
25
})
25
26
void addAnimal (Animal body );
@@ -31,6 +32,7 @@ public interface AnimalApi extends ApiClient.Api {
31
32
*/
32
33
@ RequestLine ("DELETE /animal/{animalId}" )
33
34
@ Headers ({
35
+ "Content-Type: application/json" ,
34
36
"Accept: */*" ,
35
37
"api_key: {apiKey}"
36
38
})
@@ -43,7 +45,7 @@ public interface AnimalApi extends ApiClient.Api {
43
45
*/
44
46
@ RequestLine ("GET /animal/{animalId}" )
45
47
@ Headers ({
46
- "Accept: */* " ,
48
+ "Accept: application/json " ,
47
49
})
48
50
Animal getAnimalById (@ Param ("animalId" ) Long animalId );
49
51
/**
@@ -53,6 +55,7 @@ public interface AnimalApi extends ApiClient.Api {
53
55
*/
54
56
@ RequestLine ("PUT /animal" )
55
57
@ Headers ({
58
+ "Content-Type: application/json" ,
56
59
"Accept: */*" ,
57
60
})
58
61
void updateAnimal (Animal body );
@@ -65,6 +68,7 @@ public interface AnimalApi extends ApiClient.Api {
65
68
*/
66
69
@ RequestLine ("POST /animal/{animalId}" )
67
70
@ Headers ({
71
+ "Content-Type: application/x-www-form-urlencoded" ,
68
72
"Accept: */*" ,
69
73
})
70
74
void updateAnimalWithForm (@ Param ("animalId" ) Long animalId , @ Param ("name" ) String name , @ Param ("status" ) String status );
0 commit comments