Skip navigation links

MicroProfile OpenAPI API v3.1

@Version(value="1.2") @ProviderType

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

MicroProfile OpenAPI API v3.1

Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.