You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically export your HTTP API to open standards like <ahref="https://swagger.io/">Swagger</a> and <ahref="https://raml.org/">RAML</a>.
6
+
API reference generator for <ahref="https://swagger.io/">Swagger</a> and <ahref="https://raml.org/">RAML</a>.
7
7
8
-
This module generates live documentation from your HTTP API.
8
+
This module generates live documentation from your HTTP API (source code).
9
9
10
10
## screenshots
11
11
@@ -23,7 +23,7 @@ This module generates live documentation from your HTTP API.
23
23
<dependency>
24
24
<groupId>org.jooby</groupId>
25
25
<artifactId>jooby-apitool</artifactId>
26
-
<version>1.4.1</version>
26
+
<version>1.5.0</version>
27
27
</dependency>
28
28
```
29
29
@@ -38,7 +38,7 @@ This module generates live documentation from your HTTP API.
38
38
}
39
39
```
40
40
41
-
Those lines export your API to <ahref="https://swagger.io/">Swagger</a> and <ahref="https://raml.org/">RAML</a>.
41
+
Those lines export your API to <ahref="https://swagger.io/">Swagger</a>, <ahref="https://raml.org/">RAML</a> or <ahref="http://rebilly.github.io/ReDoc/">ReDoc</a>.
42
42
43
43
## example
44
44
@@ -130,6 +130,30 @@ The [ApiTool](/apidocs/org/jooby/apitool/ApiTool.html) module automatically expo
130
130
131
131
Works for ```MVC routes``` and <ahref="http://jooby.org/doc/lang-kotlin">Kotlin</a>.
132
132
133
+
## redoc
134
+
135
+
[ReDoc](http://rebilly.github.io/ReDoc/) example:
136
+
137
+
```java
138
+
{
139
+
use(newApiTool()
140
+
.redoc()
141
+
)
142
+
}
143
+
```
144
+
145
+
Or if you want to keep Swagger UI and ReDoc:
146
+
147
+
```java
148
+
{
149
+
use(newApiTool()
150
+
.swagger(newOptions("/swagger")
151
+
.redoc()
152
+
)
153
+
)
154
+
}
155
+
```
156
+
133
157
## keep documentation
134
158
135
159
The [ApiTool](/apidocs/org/jooby/apitool/ApiTool.html) module parses documentation from source code. It works well as long as the source code is present, but it won't work after you deploy your application.
@@ -163,7 +187,7 @@ Go to ```build.gradle``` and add these lines:
0 commit comments