Contact information for the exposed API.
Allows referencing an external resource for extended documentation.
Describes a single HTTP header.
The object provides metadata about the API.
A limited subset of JSON-Schema's items object.
License information for the exposed API.
Describes a single API operation on a path.
Describes a single operation parameter.
Describes a single response from an API Operation.
The Schema Object allows the definition of input and output data types.
Allows the definition of a security scheme that can be used by the operations.
This is the root document object for the API specification.
Various useful static methods for creating Swagger elements.
Root class for all Swagger beans.
Allows adding meta data to a single tag that is used by the Operation Object.
A metadata object that allows for more fine-tuned XML model definitions.
Swagger Data Transfer Objects
Juneau supports generation and consumption of Swagger 2.0 documents and fragments through the use of DTOs
(Data Transfer Objects).
It uses existing support for serializing and parsing POJOs to and from JSON to define these objects.
The following is an example Swagger document from the Swagger website.
This document can be generated by the following Java code:
Swagger docs can be parsed back into Swagger beans using the following code:
Swagger swagger = JsonParser.
Copyright © 2017 Apache. All rights reserved.