Package io.swagger.annotations
Annotation Type Info
-
@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Info
High-level metadata for a Swagger definition - see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#infoObject- Since:
- 1.5.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Contact
contact
Optional contact information for this API.String
description
An optional description of the API.Extension[]
extensions
Optional list of extensions for this API.License
license
Optional license information for this API.String
termsOfService
An optional terms of service for this API.
-
-
-
Element Detail
-
title
String title
The title of the API.- Returns:
- the title of the API
-
-
-
version
String version
The version of your API.- Returns:
- the version of your API
-
-
-
description
String description
An optional description of the API.- Returns:
- an optional description of the API
- Default:
- ""
-
-
-
termsOfService
String termsOfService
An optional terms of service for this API.- Returns:
- an optional terms of service for this API
- Default:
- ""
-
-
-
contact
Contact contact
Optional contact information for this API.- Returns:
- optional contact information for this API
- Default:
- @io.swagger.annotations.Contact(name="")
-
-
-
license
License license
Optional license information for this API.- Returns:
- optional license information for this API
- Default:
- @io.swagger.annotations.License(name="")
-
-