-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathExampleApiConfig.java
34 lines (32 loc) · 1.21 KB
/
ExampleApiConfig.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.example.app.resource;
import io.swagger.annotations.Contact;
import io.swagger.annotations.ExternalDocs;
import io.swagger.annotations.Info;
import io.swagger.annotations.License;
import io.swagger.annotations.SwaggerDefinition;
import io.swagger.annotations.Tag;
@SwaggerDefinition(
info = @Info(
description = "Example Gwizard App",
version = "V1.0.1",
title = "The GWizard Example API",
termsOfService = "<http://localhost:8081/terms.html>",
contact = @Contact(
name = "Gandalf",
email = "[email protected]",
url = "<http://middleearth.org>"
),
license = @License(
name = "Apache 2.0",
url = "<http://www.apache.org/licenses/LICENSE-2.0>"
)
),
consumes = {"application/json", "application/xml"},
produces = {"application/json", "application/xml"},
schemes = {SwaggerDefinition.Scheme.HTTP, SwaggerDefinition.Scheme.HTTPS},
tags = {
@Tag(name = "Private", description = "Tag used to denote operations as private")
},
externalDocs = @ExternalDocs(value = "Rings", url = "<http://ringsapi.io/middleearth.html>")
)
public interface ExampleApiConfig { /* empty */ }