Skip to content

Commit c2ca2e1

Browse files
committed
adding return type for /{genre}.
1 parent 49e0240 commit c2ca2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/fxjavadevblog/aid/api/genre/GenreResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Genre[] getAllGenres() {
6363
@GET
6464
@Path("/{genre}")
6565
@Operation(summary = "Return a video game Genre")
66-
@APIResponse(responseCode = "200", description = "OK")
66+
@APIResponse(responseCode = "200", description = "OK", content= {@Content( schema=@Schema(implementation = Genre.class))})
6767
@APIResponse(responseCode = "404", description = "The genre does not exist.", ref = ApplicationConfig.RESPONSE_API_ERROR)
6868
public Response getGenre(@PathParam("genre") final Genre genre)
6969
{

0 commit comments

Comments
 (0)