Skip to content
Snippets Groups Projects
Commit c95a78bb authored by Tjark Wilhelm Hoeck's avatar Tjark Wilhelm Hoeck Committed by Tom Käsler
Browse files

Finished SwaggerConfiguration class and payed technical debts

parent 923d83ed
1 merge request!10Interactive API documentation
/*
* This file is part of ARSnova Backend.
* Copyright (C) 2012-2015 The ARSnova Team
*
* ARSnova Backend is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ARSnova Backend is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.thm.arsnova.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableWebMvc
@EnableSwagger2
@ComponentScan(basePackages = {"de.thm.arsnova.controller","de.thm.arsnova.domain"})
public class SwaggerConfiguration {
@Bean
......@@ -23,7 +34,13 @@ public class SwaggerConfiguration {
}
private ApiInfo getApiInfo() {
return new ApiInfo("ARSnova API's", "Swagger Interface for RESTful APIs", "1.0", "",
"arsnova@thm.de", "Apache License 2.0", "");
return new ApiInfo(
"ARSnova Backend",
"This is the REST API documentation of the ARSnova Backend, created with the SpringFox Framework",
"1.0",
"ARSnova API terms of service",
"arsnova@thm.de",
"GNU General Public License",
"http://www.gnu.org/licenses/");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment