Skip to content

Commit

Permalink
Added build script for documentation.
Browse files Browse the repository at this point in the history
Added bundled docs.
Updated readme.

Part of issue #697

Signed-off-by: David Joos <david.joos@bosch.io>
  • Loading branch information
David Joos committed Nov 4, 2020
1 parent 211eba0 commit f1fb693
Show file tree
Hide file tree
Showing 5 changed files with 9,045 additions and 0 deletions.
18 changes: 18 additions & 0 deletions documentation/src/main/resources/openapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@
This folder contains the OpenAPI [OpenAPI](https://www.openapis.org) [Specification version 2](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) documentation for Eclipse Ditto.

You can view it as nicely rendered HTML by importing one of the files (for API version 1 or 2) into the [Swagger Online Editor](https://editor.swagger.io).

### Build documenation

1. Install `swagger-cli`
```
$ cd sources && npm i
```

2. Build api docs
```
$ cd sources
// only v1
$ npm run build-v1
// only v2
$ npm run build-v2
// both
$ npm run build
```
Loading

0 comments on commit f1fb693

Please sign in to comment.