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


@Version("1.0") 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.

Example usage:

 @GET
  @Path("{id}")
  @APIResponse(
      responseCode="200",
      description="Review retrieved",
      content=@Content(
          schema=@Schema(
              implementation=Review.class))
  )
 
  • Annotation Interfaces
    Class
    Description
    The ApiResponse annotation corresponds to the OpenAPI Response model object which describes a single response from an API Operation, including design-time, static links to operations based on the response.
    The ApiResponses annotation is a container for @ApiResponse annotations.