Skip navigation links

Package org.eclipse.microprofile.openapi.annotations.responses

Contains annotation to describe a single response from an API operation, and an annotation to encapsulate multiple responses from an API operation.

See: Description

Package org.eclipse.microprofile.openapi.annotations.responses Description

Contains annotation to describe a single response from an API operation, and an annotation to encapsulate multiple responses from an API operation.

Example usage:

  @GET
   @Path("{id}")
   @APIResponse(
      responseCode="200",
      description="Review retrieved",
      content= @Content(
          schema= @Schema(
              implementation=Review.class))
  )
 
Skip navigation links