Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
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
Paul-Christian Volkmer
ARSnova Backend
Commits
923d83ed
There was an error fetching the commit references. Please try again later.
Commit
923d83ed
authored
9 years ago
by
Eduard Ellert
Committed by
Tom Käsler
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SwaggerConfiguration basic configs
parent
e54fe98b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/config/SwaggerConfiguration.java
+22
-1
22 additions, 1 deletion
...main/java/de/thm/arsnova/config/SwaggerConfiguration.java
with
22 additions
and
1 deletion
src/main/java/de/thm/arsnova/config/SwaggerConfiguration.java
+
22
−
1
View file @
923d83ed
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
{
//api version und Beschreibung einfügen
@Bean
public
Docket
customImplementation
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
apiInfo
(
getApiInfo
());
}
private
ApiInfo
getApiInfo
()
{
return
new
ApiInfo
(
"ARSnova API's"
,
"Swagger Interface for RESTful APIs"
,
"1.0"
,
""
,
"arsnova@thm.de"
,
"Apache License 2.0"
,
""
);
}
}
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