Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
c95a78bb
Commit
c95a78bb
authored
9 years ago
by
Tjark Wilhelm Hoeck
Committed by
Tom Käsler
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Finished SwaggerConfiguration class and payed technical debts
parent
923d83ed
1 merge request
!10
Interactive API documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/config/SwaggerConfiguration.java
+25
-8
25 additions, 8 deletions
...main/java/de/thm/arsnova/config/SwaggerConfiguration.java
with
25 additions
and
8 deletions
src/main/java/de/thm/arsnova/config/SwaggerConfiguration.java
+
25
−
8
View file @
c95a78bb
/*
* 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/"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment