public interface SwaggerArchive
Modifier and Type | Field and Description |
---|---|
static String |
SWAGGER_CONFIGURATION_PATH |
Modifier and Type | Method and Description |
---|---|
String[] |
getResourcePackages() |
boolean |
hasContextRoot()
Determine if the archive has a context root configured
|
boolean |
hasResourcePackages()
Determine if the archive has been configured for scanning
|
SwaggerArchive |
setContact(String info)
Sets the contact information for the application
|
SwaggerArchive |
setContextRoot(String root)
Sets the context root, or base path for the API calls.
|
SwaggerArchive |
setDescription(String description)
Sets the description for the application being exposed by swagger.json
|
SwaggerArchive |
setHost(String host)
Sets the addressable host name and port for the API URLs.
|
SwaggerArchive |
setLicense(String license)
Sets the license of the application.
|
SwaggerArchive |
setLicenseUrl(String licenseUrl)
Sets the license URL for this application
|
SwaggerArchive |
setPrettyPrint(boolean prettyPrint)
Sets whether the swagger.json will be pretty printed.
|
SwaggerArchive |
setResourcePackages(String... packages) |
SwaggerArchive |
setSchemes(String... schemes)
Sets the schemes for the for the API URLs (http, https)
|
SwaggerArchive |
setTermsOfServiceUrl(String url)
Sets the url to be displayed for the application's term's of service
|
SwaggerArchive |
setTitle(String title)
Sets the title of the application being exposed by swagger.json
|
SwaggerArchive |
setVersion(String version)
Sets the version of the API being exposed for this application
|
static final String SWAGGER_CONFIGURATION_PATH
SwaggerArchive setResourcePackages(String... packages)
SwaggerArchive setTitle(String title)
title
- the application's titleSwaggerArchive setDescription(String description)
description
- the descriptionSwaggerArchive setTermsOfServiceUrl(String url)
url
- the URL stringSwaggerArchive setContact(String info)
info
- The contact information stringSwaggerArchive setLicense(String license)
license
- the license textSwaggerArchive setLicenseUrl(String licenseUrl)
licenseUrl
- the license URL as a stringSwaggerArchive setVersion(String version)
version
- the version stringSwaggerArchive setSchemes(String... schemes)
schemes
- One or more strings. Valid values are 'http' and 'https'SwaggerArchive setHost(String host)
host
- the host nameSwaggerArchive setContextRoot(String root)
root
- the context rootboolean hasContextRoot()
SwaggerArchive setPrettyPrint(boolean prettyPrint)
prettyPrint
- if true swagger.json will be pretty printedboolean hasResourcePackages()
String[] getResourcePackages()
Copyright © 2018 JBoss by Red Hat. All rights reserved.