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
testCompile 'org.json:json:20170516' //6 spring boot 1 only
90
94
}
91
95
92
96
openapi { //7
@@ -103,12 +107,15 @@ openapi { //7
103
107
3. apply `restdocs-openapi-gradle-plugin`
104
108
4. add repositories used for dependency resolution. We use [jitpack](https://jitpack.io) here.
105
109
5. add the actual `restdocs-openapi` dependency to the test scope
106
-
6.`spring-boot` specifies an old version of `org.json:json`. We use [everit-org/json-schema](https://github.com/everit-org/json-schema) to generate json schema files. This project depends on a newer version of `org.json:json`. As versions from BOM always override transitive versions coming in through maven dependencies, you need to add an explicit dependency to `org.json:json:20170516`
107
-
7. add configuration options for restdocs-openapi-gradle-plugin see[Gradle plugin configuration](#gradle-plugin-configuration)
110
+
6.Only needed if you are using `spring-boot 1.x`. `Spring-boot` specifies an old version of `org.json:json`. We use [everit-org/json-schema](https://github.com/everit-org/json-schema) to generate json schema files. This project depends on a newer version of `org.json:json`. As versions from BOM always override transitive versions coming in through maven dependencies, you need to add an explicit dependency to `org.json:json:20170516`
111
+
7. add configuration options for restdocs-openapi-gradle-plugin`. See[Gradle plugin configuration](#gradle-plugin-configuration)
108
112
109
113
See the [build.gradle](samples/restdocs-openapi-sample/build.gradle) for the setup used in the sample project.
110
114
111
-
If you are searching for a maven plugin that works with `restdocs-openapi` head over to https://github.com/BerkleyTechnologyServices/restdocs-spec.
115
+
#### Maven
116
+
117
+
The root project does not provide a gradle plugin.
118
+
But you can find a maven plugin that works with `restdocs-openapi` at [BerkleyTechnologyServices/restdocs-spec](https://github.com/BerkleyTechnologyServices/restdocs-spec).
112
119
113
120
### Usage with Spring REST Docs
114
121
@@ -309,17 +316,17 @@ The `scopeDescriptionsPropertiesFile` is supposed to be a yaml file:
309
316
scope-name:A description
310
317
```
311
318
312
-
## GenerateHTML
319
+
## Generatean HTML-based API reference
313
320
314
-
We can use [redoc](https://github.com/Rebilly/ReDoc) to generate HTML API reference from our OpenAPI specification.
321
+
We can use [redoc](https://github.com/Rebilly/ReDoc) to generate an HTML API reference from our OpenAPI specification.
315
322
316
323
The [redoc-cli](https://www.npmjs.com/package/redoc-cli) can be used to serve this API reference
317
324
```
318
325
npm install -g redoc-cli
319
326
redoc-cli serve build/openapi/openapi.json
320
327
```
321
328
322
-
## Convert to RAML
329
+
## RAML
323
330
324
331
This project supersedes [restdocs-raml](https://github.com/ePages-de/restdocs-raml).
325
332
Soif you are coming from `restdocs-raml` you might want to switch to `restdocs-openapi`.
0 commit comments