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
- Host: GitHub
- URL: https://github.com/mu-semtech/cl-resources-openapi-generator
- Owner: mu-semtech
- Created: 2016-09-22T09:09:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-28T14:43:46.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T13:43:58.168Z (about 1 year ago)
- Topics: mu-generator, mu-resource, mu-utility, musemtech, openapi
- Language: Common Lisp
- Size: 13.7 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.