Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 8b19f0e

Browse files
authored
Update PetResource.java
1 parent 8eea146 commit 8b19f0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/java-jersey2/src/main/java/io/swagger/sample/resource/PetResource.java

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public Response getPetById(
6262
}
6363

6464
@POST
65+
@Consumes("application/json")
6566
@Operation(summary = "Add a new pet to the store",
6667
responses = {
6768
@ApiResponse(responseCode = "405", description = "Invalid input")

0 commit comments

Comments
 (0)