forked from cstroe/swagger-ant-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger-task-02.xml
63 lines (55 loc) · 2.84 KB
/
swagger-task-02.xml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<project name="SwaggerAntTask" basedir="." default="swaggertask">
<path id="swagger.classpath">
<fileset dir="${java.home}">
<include name="lib/tools.jar"/>
</fileset>
</path>
<target name="swaggertask.init"
description="Define the swagger task.">
<taskdef name="swagger"
classname="com.github.cstroe.swagger.docgen.SwaggerTask"
classpathref="swagger.classpath"/>
</target>
<target name="swaggertask.first"
description="A typical swagger task definition."
depends="swaggertask.init">
<swagger>
<apiSources>
<apiSource>
<!--Required parameters BEGIN-->
<locations>com.github.kongchen.swagger.sample.wordnik.resource</locations>
<apiVersion>v1</apiVersion>
<basePath>http://petstore.swagger.wordnik.com/api</basePath>
<!--Required parameters END-->
<!--Optional parameters BEGIN-->
<!---General parameters BEGIN-->
<apiInfo>
<title>Swagger Maven Plugin Sample</title>
<description>This is a sample for swagger-maven-plugin</description>
<termsOfServiceUrl>http://www.github.com/kongchen/swagger-maven-plugin</termsOfServiceUrl>
<contact>kongchen#gmail$com</contact>
<license>Apache 2.0</license>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
</apiInfo>
<overridingModels>/swagger-overriding-models.json</overridingModels>
<swaggerInternalFilter>com.wordnik.swagger.config.DefaultSpecFilter</swaggerInternalFilter>
<!---General parameters END-->
<!---Document generation parameters BEGIN-->
<outputTemplate>templates/strapdown.html.mustache</outputTemplate>
<mustacheFileRoot>${basedir}/templates/</mustacheFileRoot>
<outputPath>${basedir}/generated/document.html</outputPath>
<!---Document generation parameters END-->
<!---Swagger JSON parameters BEGIN-->
<swaggerDirectory>generated/swagger-ui</swaggerDirectory>
<swaggerUIDocBasePath>http://www.wordnik.com/restapi/doc</swaggerUIDocBasePath>
<useOutputFlatStructure>false</useOutputFlatStructure>
<!---Swagger JSON parameters END-->
</apiSource>
</apiSources>
</swagger>
</target>
<target name="swaggertask"
description="All tests."
depends="swaggertask.first"/>
</project>