An open API service indexing awesome lists of open source software.

https://github.com/mu-semtech/cl-resources-openapi-generator

Generates openapi documentation from a mu-resources configuration
https://github.com/mu-semtech/cl-resources-openapi-generator

mu-generator mu-resource mu-utility musemtech openapi

Last synced: about 1 year ago
JSON representation

Generates openapi documentation from a mu-resources configuration

Awesome Lists containing this project

README

          

# OpenAPI resources generator

Generates OpenAPI spec from mu-cl-resources

## Example usage

```
# Start a triplestore, unless you already have a triplestore in a docker available
docker run --name my-database -p 8890:8890 tenforce/virtuoso:1.0.0-virtuoso7.2.4

# Generate the sources
docker run --link my-database:database \
-v `pwd`/config/resources:/config \
-v /tmp/:/config/output \
semtech/mu-cl-resources-openapi-generator

# Copy from the terminal, or open the generated json file
cat /tmp/openapi.json
```

The last line of output contains the generate calls. `/tmp/openapi.json` will contain the generated api as well. You can paste these contents into [the swagger editor](http://editor.swagger.io/#/) to get a preview. Use the JSON import of the File menu.