Package | Description |
---|---|
org.eclipse.microprofile.openapi |
A set of Java interfaces, annotations and programming models
which allow Java developers to natively produce OpenAPI v3 documents
from their JAX-RS applications.
|
org.eclipse.microprofile.openapi.models.media |
A set of interfaces for programmable models to represent input and output data types
and media types.
|
Modifier and Type | Method and Description |
---|---|
static MediaType |
OASFactory.createMediaType()
This method creates a new
MediaType instance. |
Modifier and Type | Method and Description |
---|---|
MediaType |
MediaType.addEncoding(String key,
Encoding encodingItem)
Adds an Encoding item to the encoding property of a MediaType instance.
|
MediaType |
MediaType.addExample(String key,
Example example)
Adds an example item to the examples map of a MediaType instance.
|
default MediaType |
MediaType.encoding(Map<String,Encoding> encoding)
Sets encoding property of a MediaType instance to the given map object.
|
default MediaType |
MediaType.example(Object example)
Sets the example property of a MediaType instance to the given value.
|
default MediaType |
MediaType.examples(Map<String,Example> examples)
Sets the examples field of a MediaType instance to the given map object.
|
default MediaType |
Content.getMediaType(String name)
Returns a media type for a given name.
|
default MediaType |
MediaType.schema(Schema schema)
Sets the schema field of a MediaType instance to the given schema object.
|
Modifier and Type | Method and Description |
---|---|
Map<String,MediaType> |
Content.getMediaTypes()
Returns a copy map (potentially immutable) of media types.
|
Modifier and Type | Method and Description |
---|---|
Content |
Content.addMediaType(String name,
MediaType mediaType)
Adds the MediaType for this Content, where the key is the name of the MediaType and the value is the object that describes the content passed
into or returned from an operation.
|
Modifier and Type | Method and Description |
---|---|
void |
Content.setMediaTypes(Map<String,MediaType> mediaTypes)
Set the media types map to this Content
|
Copyright © 2017 – 2020 Eclipse Foundation. All rights reserved.
Use is subject to license terms.