├── .gitignore
├── README.md
├── Screenshots
├── readme.gif
└── swagger-screenshot.png
├── pom.xml
└── src
└── main
├── java
└── net
│ └── aimeizi
│ ├── config
│ └── ApplicationSwaggerConfig.java
│ ├── controller
│ └── EmployeeApi.java
│ └── model
│ ├── Employee.java
│ └── EmployeeList.java
└── webapp
└── WEB-INF
├── mvc-dispatcher-servlet.xml
├── swagger-ui-2.1.3
├── css
│ ├── print.css
│ ├── reset.css
│ ├── screen.css
│ ├── style.css
│ └── typography.css
├── fonts
│ ├── droid-sans-v6-latin-700.eot
│ ├── droid-sans-v6-latin-700.svg
│ ├── droid-sans-v6-latin-700.ttf
│ ├── droid-sans-v6-latin-700.woff
│ ├── droid-sans-v6-latin-700.woff2
│ ├── droid-sans-v6-latin-regular.eot
│ ├── droid-sans-v6-latin-regular.svg
│ ├── droid-sans-v6-latin-regular.ttf
│ ├── droid-sans-v6-latin-regular.woff
│ └── droid-sans-v6-latin-regular.woff2
├── images
│ ├── explorer_icons.png
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon.ico
│ ├── logo_small.png
│ ├── pet_store_api.png
│ ├── throbber.gif
│ └── wordnik_api.png
├── index.html
├── lang
│ ├── en.js
│ ├── es.js
│ ├── pt.js
│ ├── ru.js
│ ├── tr.js
│ ├── translator.js
│ └── zh-cn.js
├── lib
│ ├── backbone-min.js
│ ├── handlebars-2.0.0.js
│ ├── highlight.7.3.pack.js
│ ├── jquery-1.8.0.min.js
│ ├── jquery.ba-bbq.min.js
│ ├── jquery.slideto.min.js
│ ├── jquery.wiggle.min.js
│ ├── marked.js
│ ├── swagger-oauth.js
│ ├── underscore-min.js
│ └── underscore-min.map
├── o2c.html
├── swagger-ui.js
└── swagger-ui.min.js
└── web.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea
2 | /*.iml
3 | /target
4 | .DS_Store
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # swagger-springmvc-example
2 |
3 | 使用swagger 2构建springmvc rest服务API自动化文档
4 |
5 | # swagger api 描述信息
6 |
7 | http://localhost:8080/swagger-springmvc-example/v2/api-docs
8 |
9 | # swagger ui api自动化文档访问地址
10 |
11 | http://localhost:8080/swagger-springmvc-example/index.html
12 |
13 | # 演示
14 |
15 | 
16 |
17 | 
18 |
19 | # 相关资源
20 |
21 | https://github.com/swagger-api/swagger-ui
22 |
23 | https://github.com/springfox/springfox
--------------------------------------------------------------------------------
/Screenshots/readme.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/Screenshots/readme.gif
--------------------------------------------------------------------------------
/Screenshots/swagger-screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/Screenshots/swagger-screenshot.png
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 | net.aimeizi
5 | swagger-springmvc-example
6 | war
7 | 1.0
8 | SpringMVC Swagger Webapp
9 | http://maven.apache.org
10 |
11 |
12 | 2.3.0
13 | 4.2.4.RELEASE
14 | 3.1.0
15 |
16 |
17 |
18 |
19 | javax.servlet
20 | jstl
21 | 1.2
22 |
23 |
24 |
25 | com.fasterxml.jackson.core
26 | jackson-databind
27 | 2.6.4
28 |
29 |
30 | org.codehaus.jackson
31 | jackson-mapper-asl
32 | 1.9.13
33 |
34 |
35 |
36 | org.springframework
37 | spring-webmvc
38 | ${spring-version}
39 |
40 |
41 | org.springframework
42 | spring-context-support
43 | ${spring-version}
44 |
45 |
46 |
47 | io.springfox
48 | springfox-swagger2
49 | ${springfox-version}
50 |
51 |
52 | javax.servlet
53 | javax.servlet-api
54 | ${servlet-api-version}
55 | provided
56 |
57 |
58 |
59 |
60 | swagger-springmvc-example
61 |
62 |
63 | maven-compiler-plugin
64 |
65 | 1.6
66 | 1.6
67 |
68 |
69 |
70 | org.apache.tomcat.maven
71 | tomcat6-maven-plugin
72 | 2.2
73 |
74 |
75 | org.apache.tomcat.maven
76 | tomcat7-maven-plugin
77 | 2.2
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/src/main/java/net/aimeizi/config/ApplicationSwaggerConfig.java:
--------------------------------------------------------------------------------
1 | package net.aimeizi.config;
2 |
3 | import com.google.common.collect.Sets;
4 | import org.springframework.context.annotation.Bean;
5 | import org.springframework.context.annotation.Configuration;
6 | import springfox.documentation.service.ApiInfo;
7 | import springfox.documentation.spi.DocumentationType;
8 | import springfox.documentation.spring.web.plugins.Docket;
9 | import springfox.documentation.swagger2.annotations.EnableSwagger2;
10 |
11 | import static springfox.documentation.builders.PathSelectors.regex;
12 |
13 | /**
14 | * Swagger描述
15 | * Created by fengjing on 2015/12/30.
16 | */
17 | @Configuration
18 | @EnableSwagger2
19 | public class ApplicationSwaggerConfig {
20 |
21 | @Bean
22 | public Docket configSpringfoxDocketForAll() {
23 | return new Docket(DocumentationType.SWAGGER_2)
24 | .produces(Sets.newHashSet("application/json", "application/xml"))
25 | .consumes(Sets.newHashSet("application/json", "application/xml"))
26 | .protocols(Sets.newHashSet("http"/*, "https"*/))
27 | .forCodeGeneration(true)
28 | .select().paths(regex(".*"))
29 | .build()
30 | .apiInfo(apiInfo());
31 | }
32 |
33 | private ApiInfo apiInfo() {
34 | ApiInfo apiInfo = new ApiInfo(
35 | "SpringMVC REST API文档",
36 | "使用Swagger UI构建SpringMVC REST风格的可视化文档",
37 | "1.0.0",
38 | "http://localhost:8080/SpringMVC/v2/api-docs",
39 | "sxyx2008@163.com",
40 | "Apache License",
41 | "http://www.apache.org/licenses/LICENSE-2.0.html"
42 | );
43 | return apiInfo;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/net/aimeizi/controller/EmployeeApi.java:
--------------------------------------------------------------------------------
1 | package net.aimeizi.controller;
2 |
3 | /**
4 | * spring mvc rest服务
5 | * Created by fengjing on 2015/12/30.
6 | */
7 |
8 | import net.aimeizi.model.Employee;
9 | import net.aimeizi.model.EmployeeList;
10 | import io.swagger.annotations.Api;
11 | import io.swagger.annotations.ApiOperation;
12 | import io.swagger.annotations.ApiParam;
13 | import org.springframework.http.HttpStatus;
14 | import org.springframework.http.MediaType;
15 | import org.springframework.http.ResponseEntity;
16 | import org.springframework.web.bind.annotation.PathVariable;
17 | import org.springframework.web.bind.annotation.RequestMapping;
18 | import org.springframework.web.bind.annotation.RequestMethod;
19 | import org.springframework.web.bind.annotation.RestController;
20 |
21 | @Api(value = "雇员API", description = "雇员API")
22 | @RestController
23 | @RequestMapping(value = "/v2/api", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})
24 | public class EmployeeApi {
25 |
26 | @ApiOperation(value = "查询所有的雇员信息", notes = "查询所有的雇员信息", response = EmployeeList.class)
27 | @RequestMapping(value = "/employees", method = RequestMethod.GET)
28 | public EmployeeList getAllEmployees() {
29 | EmployeeList employees = new EmployeeList();
30 | Employee employee1 = new Employee(1, "Lokesh", "Gupta", "howtodoinjava@gmail.com");
31 | Employee employee2 = new Employee(2, "Amit", "Singhal", "asinghal@yahoo.com");
32 | Employee employee3 = new Employee(3, "Kirti", "Mishra", "kmishra@gmail.com");
33 | employees.getEmployees().add(employee1);
34 | employees.getEmployees().add(employee2);
35 | employees.getEmployees().add(employee3);
36 | return employees;
37 | }
38 |
39 | @ApiOperation(value = "根据雇员Id查询雇员信息", notes = "根据雇员Id查询雇员信息",response = Employee.class)
40 | @RequestMapping(value = "/employees/{id}", method = RequestMethod.GET)
41 | public ResponseEntity getEmployeeById(@ApiParam(name = "id", value = "雇员编号", required = true) @PathVariable("id") int id) {
42 | if (id <= 3) {
43 | Employee employee = new Employee(1,"Lokesh","Gupta","howtodoinjava@gmail.com");
44 | return new ResponseEntity(employee, HttpStatus.OK);
45 | }
46 | return new ResponseEntity(HttpStatus.NOT_FOUND);
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/net/aimeizi/model/Employee.java:
--------------------------------------------------------------------------------
1 | package net.aimeizi.model;
2 |
3 | /**
4 | * Created by fengjing on 2015/12/30.
5 | */
6 |
7 | import io.swagger.annotations.ApiModel;
8 | import io.swagger.annotations.ApiModelProperty;
9 |
10 | import javax.xml.bind.annotation.*;
11 | import java.io.Serializable;
12 |
13 | @XmlRootElement(name = "employee")
14 | @XmlAccessorType(XmlAccessType.NONE)
15 | @ApiModel(value = "雇员信息", description = "雇员信息")
16 | public class Employee implements Serializable {
17 |
18 | @XmlAttribute
19 | @ApiModelProperty(value = "雇员编号", dataType = "int", required = true)
20 | private Integer id;
21 |
22 | @XmlElement
23 | @ApiModelProperty(value = "名", dataType = "String", required = false)
24 | private String firstName;
25 |
26 | @XmlElement
27 | @ApiModelProperty(value = "姓", dataType = "String", required = false)
28 | private String lastName;
29 |
30 | @XmlElement
31 | @ApiModelProperty(value = "电子邮件", dataType = "String", required = false)
32 | private String email;
33 |
34 | public Employee() {
35 | }
36 |
37 | public Employee(Integer id, String firstName, String lastName, String email) {
38 | super();
39 | this.id = id;
40 | this.firstName = firstName;
41 | this.lastName = lastName;
42 | this.email = email;
43 | }
44 |
45 | public Integer getId() {
46 | return id;
47 | }
48 |
49 | public void setId(Integer id) {
50 | this.id = id;
51 | }
52 |
53 | public String getFirstName() {
54 | return firstName;
55 | }
56 |
57 | public void setFirstName(String firstName) {
58 | this.firstName = firstName;
59 | }
60 |
61 | public String getLastName() {
62 | return lastName;
63 | }
64 |
65 | public void setLastName(String lastName) {
66 | this.lastName = lastName;
67 | }
68 |
69 | public String getEmail() {
70 | return email;
71 | }
72 |
73 | public void setEmail(String email) {
74 | this.email = email;
75 | }
76 |
77 | }
--------------------------------------------------------------------------------
/src/main/java/net/aimeizi/model/EmployeeList.java:
--------------------------------------------------------------------------------
1 | package net.aimeizi.model;
2 |
3 | import io.swagger.annotations.ApiModel;
4 |
5 | import javax.xml.bind.annotation.XmlAccessType;
6 | import javax.xml.bind.annotation.XmlAccessorType;
7 | import javax.xml.bind.annotation.XmlElement;
8 | import javax.xml.bind.annotation.XmlRootElement;
9 | import java.io.Serializable;
10 | import java.util.ArrayList;
11 | import java.util.List;
12 |
13 | /**
14 | * Created by fengjing on 2015/12/30.
15 | */
16 | @XmlRootElement(name = "employees")
17 | @XmlAccessorType(XmlAccessType.NONE)
18 | @ApiModel(value = "雇员列表", description = "雇员列表")
19 | public class EmployeeList implements Serializable {
20 |
21 | @XmlElement(name = "employee")
22 | private List employees = new ArrayList();
23 |
24 | public List getEmployees() {
25 | return employees;
26 | }
27 |
28 | public void setEmployees(List employees) {
29 | this.employees = employees;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/css/reset.css:
--------------------------------------------------------------------------------
1 | /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
2 | html,
3 | body,
4 | div,
5 | span,
6 | applet,
7 | object,
8 | iframe,
9 | h1,
10 | h2,
11 | h3,
12 | h4,
13 | h5,
14 | h6,
15 | p,
16 | blockquote,
17 | pre,
18 | a,
19 | abbr,
20 | acronym,
21 | address,
22 | big,
23 | cite,
24 | code,
25 | del,
26 | dfn,
27 | em,
28 | img,
29 | ins,
30 | kbd,
31 | q,
32 | s,
33 | samp,
34 | small,
35 | strike,
36 | strong,
37 | sub,
38 | sup,
39 | tt,
40 | var,
41 | b,
42 | u,
43 | i,
44 | center,
45 | dl,
46 | dt,
47 | dd,
48 | ol,
49 | ul,
50 | li,
51 | fieldset,
52 | form,
53 | label,
54 | legend,
55 | table,
56 | caption,
57 | tbody,
58 | tfoot,
59 | thead,
60 | tr,
61 | th,
62 | td,
63 | article,
64 | aside,
65 | canvas,
66 | details,
67 | embed,
68 | figure,
69 | figcaption,
70 | footer,
71 | header,
72 | hgroup,
73 | menu,
74 | nav,
75 | output,
76 | ruby,
77 | section,
78 | summary,
79 | time,
80 | mark,
81 | audio,
82 | video {
83 | margin: 0;
84 | padding: 0;
85 | border: 0;
86 | font-size: 100%;
87 | font: inherit;
88 | vertical-align: baseline;
89 | }
90 | /* HTML5 display-role reset for older browsers */
91 | article,
92 | aside,
93 | details,
94 | figcaption,
95 | figure,
96 | footer,
97 | header,
98 | hgroup,
99 | menu,
100 | nav,
101 | section {
102 | display: block;
103 | }
104 | body {
105 | line-height: 1;
106 | }
107 | ol,
108 | ul {
109 | list-style: none;
110 | }
111 | blockquote,
112 | q {
113 | quotes: none;
114 | }
115 | blockquote:before,
116 | blockquote:after,
117 | q:before,
118 | q:after {
119 | content: '';
120 | content: none;
121 | }
122 | table {
123 | border-collapse: collapse;
124 | border-spacing: 0;
125 | }
126 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/css/style.css:
--------------------------------------------------------------------------------
1 | .swagger-section #header a#logo {
2 | font-size: 1.5em;
3 | font-weight: bold;
4 | text-decoration: none;
5 | background: transparent url(../images/logo.png) no-repeat left center;
6 | padding: 20px 0 20px 40px;
7 | }
8 | #text-head {
9 | font-size: 80px;
10 | font-family: 'Roboto', sans-serif;
11 | color: #ffffff;
12 | float: right;
13 | margin-right: 20%;
14 | }
15 | .navbar-fixed-top .navbar-nav {
16 | height: auto;
17 | }
18 | .navbar-fixed-top .navbar-brand {
19 | height: auto;
20 | }
21 | .navbar-header {
22 | height: auto;
23 | }
24 | .navbar-inverse {
25 | background-color: #000;
26 | border-color: #000;
27 | }
28 | #navbar-brand {
29 | margin-left: 20%;
30 | }
31 | .navtext {
32 | font-size: 10px;
33 | }
34 | .h1,
35 | h1 {
36 | font-size: 60px;
37 | }
38 | .navbar-default .navbar-header .navbar-brand {
39 | color: #a2dfee;
40 | }
41 | /* tag titles */
42 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
43 | color: #393939;
44 | font-family: 'Arvo', serif;
45 | font-size: 1.5em;
46 | }
47 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
48 | color: black;
49 | }
50 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
51 | color: #525252;
52 | padding-left: 0px;
53 | display: block;
54 | clear: none;
55 | float: left;
56 | font-family: 'Arvo', serif;
57 | font-weight: bold;
58 | }
59 | .navbar-default .navbar-collapse,
60 | .navbar-default .navbar-form {
61 | border-color: #0A0A0A;
62 | }
63 | .container1 {
64 | width: 1500px;
65 | margin: auto;
66 | margin-top: 0;
67 | background-image: url('../images/shield.png');
68 | background-repeat: no-repeat;
69 | background-position: -40px -20px;
70 | margin-bottom: 210px;
71 | }
72 | .container-inner {
73 | width: 1200px;
74 | margin: auto;
75 | background-color: rgba(223, 227, 228, 0.75);
76 | padding-bottom: 40px;
77 | padding-top: 40px;
78 | border-radius: 15px;
79 | }
80 | .header-content {
81 | padding: 0;
82 | width: 1000px;
83 | }
84 | .title1 {
85 | font-size: 80px;
86 | font-family: 'Vollkorn', serif;
87 | color: #404040;
88 | text-align: center;
89 | padding-top: 40px;
90 | padding-bottom: 100px;
91 | }
92 | #icon {
93 | margin-top: -18px;
94 | }
95 | .subtext {
96 | font-size: 25px;
97 | font-style: italic;
98 | color: #08b;
99 | text-align: right;
100 | padding-right: 250px;
101 | }
102 | .bg-primary {
103 | background-color: #00468b;
104 | }
105 | .navbar-default .nav > li > a,
106 | .navbar-default .nav > li > a:focus {
107 | color: #08b;
108 | }
109 | .navbar-default .nav > li > a,
110 | .navbar-default .nav > li > a:hover {
111 | color: #08b;
112 | }
113 | .navbar-default .nav > li > a,
114 | .navbar-default .nav > li > a:focus:hover {
115 | color: #08b;
116 | }
117 | .text-faded {
118 | font-size: 25px;
119 | font-family: 'Vollkorn', serif;
120 | }
121 | .section-heading {
122 | font-family: 'Vollkorn', serif;
123 | font-size: 45px;
124 | padding-bottom: 10px;
125 | }
126 | hr {
127 | border-color: #00468b;
128 | padding-bottom: 10px;
129 | }
130 | .description {
131 | margin-top: 20px;
132 | padding-bottom: 200px;
133 | }
134 | .description li {
135 | font-family: 'Vollkorn', serif;
136 | font-size: 25px;
137 | color: #525252;
138 | margin-left: 28%;
139 | padding-top: 5px;
140 | }
141 | .gap {
142 | margin-top: 200px;
143 | }
144 | .troubleshootingtext {
145 | color: rgba(255, 255, 255, 0.7);
146 | padding-left: 30%;
147 | }
148 | .troubleshootingtext li {
149 | list-style-type: circle;
150 | font-size: 25px;
151 | padding-bottom: 5px;
152 | }
153 | .overlay {
154 | position: absolute;
155 | top: 0;
156 | left: 0;
157 | width: 100%;
158 | height: 100%;
159 | z-index: 1000;
160 | }
161 | .block.response_body.json:hover {
162 | cursor: pointer;
163 | }
164 | .backdrop {
165 | color: blue;
166 | }
167 | #myModal {
168 | height: 100%;
169 | }
170 | .modal-backdrop {
171 | bottom: 0;
172 | position: fixed;
173 | }
174 | .curl {
175 | padding: 10px;
176 | font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
177 | font-size: 0.9em;
178 | max-height: 400px;
179 | margin-top: 5px;
180 | overflow-y: auto;
181 | background-color: #fcf6db;
182 | border: 1px solid #e5e0c6;
183 | border-radius: 4px;
184 | }
185 | .curl_title {
186 | font-size: 1.1em;
187 | margin: 0;
188 | padding: 15px 0 5px;
189 | font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
190 | font-weight: 500;
191 | line-height: 1.1;
192 | }
193 | .footer {
194 | display: none;
195 | }
196 | .swagger-section .swagger-ui-wrap h2 {
197 | padding: 0;
198 | }
199 | h2 {
200 | margin: 0;
201 | margin-bottom: 5px;
202 | }
203 | .markdown p {
204 | font-size: 15px;
205 | font-family: 'Arvo', serif;
206 | }
207 | .swagger-section .swagger-ui-wrap .code {
208 | font-size: 15px;
209 | font-family: 'Arvo', serif;
210 | }
211 | .swagger-section .swagger-ui-wrap b {
212 | font-family: 'Arvo', serif;
213 | }
214 | #signin:hover {
215 | cursor: pointer;
216 | }
217 | .dropdown-menu {
218 | padding: 15px;
219 | }
220 | .navbar-right .dropdown-menu {
221 | left: 0;
222 | right: auto;
223 | }
224 | #signinbutton {
225 | width: 100%;
226 | height: 32px;
227 | font-size: 13px;
228 | font-weight: bold;
229 | color: #08b;
230 | }
231 | .navbar-default .nav > li .details {
232 | color: #000000;
233 | text-transform: none;
234 | font-size: 15px;
235 | font-weight: normal;
236 | font-family: 'Open Sans', sans-serif;
237 | font-style: italic;
238 | line-height: 20px;
239 | top: -2px;
240 | }
241 | .navbar-default .nav > li .details:hover {
242 | color: black;
243 | }
244 | #signout {
245 | width: 100%;
246 | height: 32px;
247 | font-size: 13px;
248 | font-weight: bold;
249 | color: #08b;
250 | }
251 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/css/typography.css:
--------------------------------------------------------------------------------
1 | /* droid-sans-regular - latin */
2 | @font-face {
3 | font-family: 'Droid Sans';
4 | font-style: normal;
5 | font-weight: 400;
6 | src: url('../fonts/droid-sans-v6-latin-regular.eot'); /* IE9 Compat Modes */
7 | src: local('Droid Sans'), local('DroidSans'),
8 | url('../fonts/droid-sans-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
9 | url('../fonts/droid-sans-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
10 | url('../fonts/droid-sans-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
11 | url('../fonts/droid-sans-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
12 | url('../fonts/droid-sans-v6-latin-regular.svg#DroidSans') format('svg'); /* Legacy iOS */
13 | }
14 | /* droid-sans-700 - latin */
15 | @font-face {
16 | font-family: 'Droid Sans';
17 | font-style: normal;
18 | font-weight: 700;
19 | src: url('../fonts/droid-sans-v6-latin-700.eot'); /* IE9 Compat Modes */
20 | src: local('Droid Sans Bold'), local('DroidSans-Bold'),
21 | url('../fonts/droid-sans-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
22 | url('../fonts/droid-sans-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
23 | url('../fonts/droid-sans-v6-latin-700.woff') format('woff'), /* Modern Browsers */
24 | url('../fonts/droid-sans-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
25 | url('../fonts/droid-sans-v6-latin-700.svg#DroidSans') format('svg'); /* Legacy iOS */
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.eot
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.ttf
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.woff
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-700.woff2
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.woff
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/fonts/droid-sans-v6-latin-regular.woff2
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/explorer_icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/explorer_icons.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon-16x16.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon-32x32.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/favicon.ico
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/logo_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/logo_small.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/pet_store_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/pet_store_api.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/throbber.gif
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/wordnik_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/v5tech/swagger-springmvc-example/1f5453c6c97a4945e43ddd058ffac4613dd4c15a/src/main/webapp/WEB-INF/swagger-ui-2.1.3/images/wordnik_api.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Swagger UI
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
101 |
102 |
103 |
104 |
114 |
115 |
116 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/en.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"Warning: Deprecated",
6 | "Implementation Notes":"Implementation Notes",
7 | "Response Class":"Response Class",
8 | "Status":"Status",
9 | "Parameters":"Parameters",
10 | "Parameter":"Parameter",
11 | "Value":"Value",
12 | "Description":"Description",
13 | "Parameter Type":"Parameter Type",
14 | "Data Type":"Data Type",
15 | "Response Messages":"Response Messages",
16 | "HTTP Status Code":"HTTP Status Code",
17 | "Reason":"Reason",
18 | "Response Model":"Response Model",
19 | "Request URL":"Request URL",
20 | "Response Body":"Response Body",
21 | "Response Code":"Response Code",
22 | "Response Headers":"Response Headers",
23 | "Hide Response":"Hide Response",
24 | "Headers":"Headers",
25 | "Try it out!":"Try it out!",
26 | "Show/Hide":"Show/Hide",
27 | "List Operations":"List Operations",
28 | "Expand Operations":"Expand Operations",
29 | "Raw":"Raw",
30 | "can't parse JSON. Raw result":"can't parse JSON. Raw result",
31 | "Model Schema":"Model Schema",
32 | "Model":"Model",
33 | "apply":"apply",
34 | "Username":"Username",
35 | "Password":"Password",
36 | "Terms of service":"Terms of service",
37 | "Created by":"Created by",
38 | "See more at":"See more at",
39 | "Contact the developer":"Contact the developer",
40 | "api version":"api version",
41 | "Response Content Type":"Response Content Type",
42 | "fetching resource":"fetching resource",
43 | "fetching resource list":"fetching resource list",
44 | "Explore":"Explore",
45 | "Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
46 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
47 | "Please specify the protocol for":"Please specify the protocol for",
48 | "Can't read swagger JSON from":"Can't read swagger JSON from",
49 | "Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
50 | "Unable to read api":"Unable to read api",
51 | "from path":"from path",
52 | "server returned":"server returned"
53 | });
54 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/es.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"Advertencia: Obsoleto",
6 | "Implementation Notes":"Notas de implementación",
7 | "Response Class":"Clase de la Respuesta",
8 | "Status":"Status",
9 | "Parameters":"Parámetros",
10 | "Parameter":"Parámetro",
11 | "Value":"Valor",
12 | "Description":"Descripción",
13 | "Parameter Type":"Tipo del Parámetro",
14 | "Data Type":"Tipo del Dato",
15 | "Response Messages":"Mensajes de la Respuesta",
16 | "HTTP Status Code":"Código de Status HTTP",
17 | "Reason":"Razón",
18 | "Response Model":"Modelo de la Respuesta",
19 | "Request URL":"URL de la Solicitud",
20 | "Response Body":"Cuerpo de la Respuesta",
21 | "Response Code":"Código de la Respuesta",
22 | "Response Headers":"Encabezados de la Respuesta",
23 | "Hide Response":"Ocultar Respuesta",
24 | "Try it out!":"Pruébalo!",
25 | "Show/Hide":"Mostrar/Ocultar",
26 | "List Operations":"Listar Operaciones",
27 | "Expand Operations":"Expandir Operaciones",
28 | "Raw":"Crudo",
29 | "can't parse JSON. Raw result":"no puede parsear el JSON. Resultado crudo",
30 | "Model Schema":"Esquema del Modelo",
31 | "Model":"Modelo",
32 | "apply":"aplicar",
33 | "Username":"Nombre de usuario",
34 | "Password":"Contraseña",
35 | "Terms of service":"Términos de Servicio",
36 | "Created by":"Creado por",
37 | "See more at":"Ver más en",
38 | "Contact the developer":"Contactar al desarrollador",
39 | "api version":"versión de la api",
40 | "Response Content Type":"Tipo de Contenido (Content Type) de la Respuesta",
41 | "fetching resource":"buscando recurso",
42 | "fetching resource list":"buscando lista del recurso",
43 | "Explore":"Explorar",
44 | "Show Swagger Petstore Example Apis":"Mostrar Api Ejemplo de Swagger Petstore",
45 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"No se puede leer del servidor. Tal vez no tiene la configuración de control de acceso de origen (access-control-origin) apropiado.",
46 | "Please specify the protocol for":"Por favor, especificar el protocola para",
47 | "Can't read swagger JSON from":"No se puede leer el JSON de swagger desde",
48 | "Finished Loading Resource Information. Rendering Swagger UI":"Finalizada la carga del recurso de Información. Mostrando Swagger UI",
49 | "Unable to read api":"No se puede leer la api",
50 | "from path":"desde ruta",
51 | "server returned":"el servidor retornó"
52 | });
53 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/pt.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"Aviso: Depreciado",
6 | "Implementation Notes":"Notas de Implementação",
7 | "Response Class":"Classe de resposta",
8 | "Status":"Status",
9 | "Parameters":"Parâmetros",
10 | "Parameter":"Parâmetro",
11 | "Value":"Valor",
12 | "Description":"Descrição",
13 | "Parameter Type":"Tipo de parâmetro",
14 | "Data Type":"Tipo de dados",
15 | "Response Messages":"Mensagens de resposta",
16 | "HTTP Status Code":"Código de status HTTP",
17 | "Reason":"Razão",
18 | "Response Model":"Modelo resposta",
19 | "Request URL":"URL requisição",
20 | "Response Body":"Corpo da resposta",
21 | "Response Code":"Código da resposta",
22 | "Response Headers":"Cabeçalho da resposta",
23 | "Headers":"Cabeçalhos",
24 | "Hide Response":"Esconder resposta",
25 | "Try it out!":"Tente agora!",
26 | "Show/Hide":"Mostrar/Esconder",
27 | "List Operations":"Listar operações",
28 | "Expand Operations":"Expandir operações",
29 | "Raw":"Cru",
30 | "can't parse JSON. Raw result":"Falha ao analisar JSON. Resulto cru",
31 | "Model Schema":"Modelo esquema",
32 | "Model":"Modelo",
33 | "apply":"Aplicar",
34 | "Username":"Usuário",
35 | "Password":"Senha",
36 | "Terms of service":"Termos do serviço",
37 | "Created by":"Criado por",
38 | "See more at":"Veja mais em",
39 | "Contact the developer":"Contate o desenvolvedor",
40 | "api version":"Versão api",
41 | "Response Content Type":"Tipo de conteúdo da resposta",
42 | "fetching resource":"busca recurso",
43 | "fetching resource list":"buscando lista de recursos",
44 | "Explore":"Explorar",
45 | "Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
46 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"Não é possível ler do servidor. Pode não ter as apropriadas configurações access-control-origin",
47 | "Please specify the protocol for":"Por favor especifique o protocolo",
48 | "Can't read swagger JSON from":"Não é possível ler o JSON Swagger de",
49 | "Finished Loading Resource Information. Rendering Swagger UI":"Carregar informação de recurso finalizada. Renderizando Swagger UI",
50 | "Unable to read api":"Não foi possível ler api",
51 | "from path":"do caminho",
52 | "server returned":"servidor retornou"
53 | });
54 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/ru.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"Ворнинг: Депрекейтед",
6 | "Implementation Notes":"Заметки",
7 | "Response Class":"Пример ответа",
8 | "Status":"Статус",
9 | "Parameters":"Параметры",
10 | "Parameter":"Параметр",
11 | "Value":"Значение",
12 | "Description":"Описание",
13 | "Parameter Type":"Тип параметра",
14 | "Data Type":"Тип данных",
15 | "HTTP Status Code":"HTTP код",
16 | "Reason":"Причина",
17 | "Response Model":"Структура ответа",
18 | "Request URL":"URL запроса",
19 | "Response Body":"Тело ответа",
20 | "Response Code":"HTTP код ответа",
21 | "Response Headers":"Заголовки ответа",
22 | "Hide Response":"Спрятать ответ",
23 | "Response Messages":"Что может прийти в ответ",
24 | "Try it out!":"Попробовать!",
25 | "Show/Hide":"Показать/Скрыть",
26 | "List Operations":"Операции кратко",
27 | "Expand Operations":"Операции подробно",
28 | "Raw":"В сыром виде",
29 | "can't parse JSON. Raw result":"Не удается распарсить ответ:",
30 | "Model Schema":"Структура",
31 | "Model":"Описание",
32 | "apply":"применить",
33 | "Username":"Имя пользователя",
34 | "Password":"Пароль",
35 | "Terms of service":"Условия использования",
36 | "Created by":"Разработано",
37 | "See more at":"Еще тут",
38 | "Contact the developer":"Связаться с разработчиком",
39 | "api version":"Версия API",
40 | "Response Content Type":"Content Type ответа",
41 | "fetching resource":"Получение ресурса",
42 | "fetching resource list":"Получение ресурсов",
43 | "Explore":"Поехали",
44 | "Show Swagger Petstore Example Apis":"Показать примеры АПИ",
45 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"Не удается получить ответ от сервера. Возможно, какая-то лажа с настройками доступа",
46 | "Please specify the protocol for":"Пожалуйста, укажите протогол для",
47 | "Can't read swagger JSON from":"Не получается прочитать swagger json из",
48 | "Finished Loading Resource Information. Rendering Swagger UI":"Загрузка информации о ресурсах завершена. Рендерим",
49 | "Unable to read api":"Не удалось прочитать api",
50 | "from path":"по адресу",
51 | "server returned":"сервер сказал"
52 | });
53 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/tr.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"Uyarı: Deprecated",
6 | "Implementation Notes":"Gerçekleştirim Notları",
7 | "Response Class":"Dönen Sınıf",
8 | "Status":"Statü",
9 | "Parameters":"Parametreler",
10 | "Parameter":"Parametre",
11 | "Value":"Değer",
12 | "Description":"Açıklama",
13 | "Parameter Type":"Parametre Tipi",
14 | "Data Type":"Veri Tipi",
15 | "Response Messages":"Dönüş Mesajı",
16 | "HTTP Status Code":"HTTP Statü Kodu",
17 | "Reason":"Gerekçe",
18 | "Response Model":"Dönüş Modeli",
19 | "Request URL":"İstek URL",
20 | "Response Body":"Dönüş İçeriği",
21 | "Response Code":"Dönüş Kodu",
22 | "Response Headers":"Dönüş Üst Bilgileri",
23 | "Hide Response":"Dönüşü Gizle",
24 | "Headers":"Üst Bilgiler",
25 | "Try it out!":"Dene!",
26 | "Show/Hide":"Göster/Gizle",
27 | "List Operations":"Operasyonları Listele",
28 | "Expand Operations":"Operasyonları Aç",
29 | "Raw":"Ham",
30 | "can't parse JSON. Raw result":"JSON çözümlenemiyor. Ham sonuç",
31 | "Model Schema":"Model Şema",
32 | "Model":"Model",
33 | "apply":"uygula",
34 | "Username":"Kullanıcı Adı",
35 | "Password":"Parola",
36 | "Terms of service":"Servis şartları",
37 | "Created by":"Oluşturan",
38 | "See more at":"Daha fazlası için",
39 | "Contact the developer":"Geliştirici ile İletişime Geçin",
40 | "api version":"api versiyon",
41 | "Response Content Type":"Dönüş İçerik Tipi",
42 | "fetching resource":"kaynak getiriliyor",
43 | "fetching resource list":"kaynak listesi getiriliyor",
44 | "Explore":"Keşfet",
45 | "Show Swagger Petstore Example Apis":"Swagger Petstore Örnek Api'yi Gör",
46 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"Sunucudan okuma yapılamıyor. Sunucu access-control-origin ayarlarınızı kontrol edin.",
47 | "Please specify the protocol for":"Lütfen istenen adres için protokol belirtiniz",
48 | "Can't read swagger JSON from":"Swagger JSON bu kaynaktan okunamıyor",
49 | "Finished Loading Resource Information. Rendering Swagger UI":"Kaynak baglantısı tamamlandı. Swagger UI gösterime hazırlanıyor",
50 | "Unable to read api":"api okunamadı",
51 | "from path":"yoldan",
52 | "server returned":"sunucuya dönüldü"
53 | });
54 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/translator.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Translator for documentation pages.
5 | *
6 | * To enable translation you should include one of language-files in your index.html
7 | * after .
8 | * For example -
9 | *
10 | * If you wish to translate some new texsts you should do two things:
11 | * 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too.
12 | * 2. Mark that text it templates this way New Phrase or .
13 | * The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate.
14 | *
15 | */
16 | window.SwaggerTranslator = {
17 |
18 | _words:[],
19 |
20 | translate: function(sel) {
21 | var $this = this;
22 | sel = sel || '[data-sw-translate]';
23 |
24 | $(sel).each(function() {
25 | $(this).html($this._tryTranslate($(this).html()));
26 |
27 | $(this).val($this._tryTranslate($(this).val()));
28 | $(this).attr('title', $this._tryTranslate($(this).attr('title')));
29 | });
30 | },
31 |
32 | _tryTranslate: function(word) {
33 | return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
34 | },
35 |
36 | learn: function(wordsMap) {
37 | this._words = wordsMap;
38 | }
39 | };
40 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lang/zh-cn.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* jshint quotmark: double */
4 | window.SwaggerTranslator.learn({
5 | "Warning: Deprecated":"警告:已过时",
6 | "Implementation Notes":"实现备注",
7 | "Response Class":"响应类",
8 | "Status":"状态",
9 | "Parameters":"参数",
10 | "Parameter":"参数",
11 | "Value":"值",
12 | "Description":"描述",
13 | "Parameter Type":"参数类型",
14 | "Data Type":"数据类型",
15 | "Response Messages":"响应消息",
16 | "HTTP Status Code":"HTTP状态码",
17 | "Reason":"原因",
18 | "Response Model":"响应模型",
19 | "Request URL":"请求URL",
20 | "Response Body":"响应体",
21 | "Response Code":"响应码",
22 | "Response Headers":"响应头",
23 | "Hide Response":"隐藏响应",
24 | "Headers":"头",
25 | "Try it out!":"试一下!",
26 | "Show/Hide":"显示/隐藏",
27 | "List Operations":"显示操作",
28 | "Expand Operations":"展开操作",
29 | "Raw":"原始",
30 | "can't parse JSON. Raw result":"无法解析JSON. 原始结果",
31 | "Model Schema":"模型架构",
32 | "Model":"模型",
33 | "apply":"应用",
34 | "Username":"用户名",
35 | "Password":"密码",
36 | "Terms of service":"服务条款",
37 | "Created by":"创建者",
38 | "See more at":"查看更多:",
39 | "Contact the developer":"联系开发者",
40 | "api version":"api版本",
41 | "Response Content Type":"响应Content Type",
42 | "fetching resource":"正在获取资源",
43 | "fetching resource list":"正在获取资源列表",
44 | "Explore":"浏览",
45 | "Show Swagger Petstore Example Apis":"显示 Swagger Petstore 示例 Apis",
46 | "Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从服务器读取。可能没有正确设置access-control-origin。",
47 | "Please specify the protocol for":"请指定协议:",
48 | "Can't read swagger JSON from":"无法读取swagger JSON于",
49 | "Finished Loading Resource Information. Rendering Swagger UI":"已加载资源信息。正在渲染Swagger UI",
50 | "Unable to read api":"无法读取api",
51 | "from path":"从路径",
52 | "server returned":"服务器返回"
53 | });
54 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/swagger-ui-2.1.3/lib/backbone-min.js:
--------------------------------------------------------------------------------
1 | // Backbone.js 1.1.2
2 |
3 | (function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('