Skip navigation links

MicroProfile OpenAPI API v3.1

@Version(value="2.1") @ProviderType

Package org.eclipse.microprofile.openapi.models.media

A set of interfaces for programmable models to represent input and output data types and media types.

See: Description

Package org.eclipse.microprofile.openapi.models.media Description

A set of interfaces for programmable models to represent input and output data types and media types.

The behaviour of methods inherited from java.lang.Object are undefined by the MicroProfile OpenAPI specification.

Example usage:

 .responses(OASFactory.createObject(APIResponses.class)
      .addApiResponse("200", OASFactory.createObject(APIResponse.class)
          .description("Bookings retrieved")
          .content(OASFactory.createObject(Content.class)
              .addMediaType("applictaion/json", OASFactory.createObject(MediaType.class)
                  .schema(OASFactory.createObject(Schema.class)
                      .type(Schema.SchemaType.ARRAY)
                      .ref("#/components.schemas.Booking")))))
 
Skip navigation links

MicroProfile OpenAPI API v3.1

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