Java Code Examples for springfox.documentation.builders.ApiInfoBuilder#description()

The following examples show how to use springfox.documentation.builders.ApiInfoBuilder#description() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SwaggerConfig.java    From BlogManagePlatform with Apache License 2.0 5 votes vote down vote up
/**
 * 说明配置
 * @author Frodez
 * @date 2019-01-06
 */
private void infoConfig(Docket docket) {
	ApiInfoBuilder infoBuilder = new ApiInfoBuilder();
	infoBuilder.title(swagger.getTitle());
	infoBuilder.description(swagger.getDescription());
	Contact contact = new Contact(swagger.getAuthor(), swagger.getDocUrl(), swagger.getEmail());
	infoBuilder.contact(contact);
	infoBuilder.version(swagger.getAppVersion());
	infoBuilder.license(swagger.getLicense());
	infoBuilder.licenseUrl(swagger.getLicenseUrl());
	docket.apiInfo(infoBuilder.build());
}
 
Example 2
Source File: SwaggerConfig.java    From generic-rest-api with GNU General Public License v3.0 5 votes vote down vote up
private ApiInfo apiInfo() {
	
	ApiInfoBuilder apiInfoBuilder = new ApiInfoBuilder();
	apiInfoBuilder.title("Generic REST API");
	apiInfoBuilder.description("Simple REST API Generation");
	apiInfoBuilder.version("0.0.1-SNAPSHOT");
	apiInfoBuilder.contact(new Contact("Ferdi Sonmezay", "https://ferdisonmezay.com", "[email protected]"));
	apiInfoBuilder.license("GNU GENERAL PUBLIC LICENSE, Version 3");
	apiInfoBuilder.licenseUrl("https://www.gnu.org/licenses/gpl-3.0.en.html");
	
	return apiInfoBuilder.build();
}