| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Docker image to run the api:Console for your REST API documentation with RAML.
docker pull slecache/api-console
docker build -t slecache/api-console .
docker run -p 9000:9000 -d slecache/api-console
Then, access it via http://localhost:9000 in a browser.
Your main RAML file MUST be named main.raml.
docker run -v /your_local_folder_where_are_your_raml_files:/data/dist/apis --name DATA busybox true docker run --volumes-from DATA -p 9000:9000 -p 35729:35729 -d slecache/api-console
Please note that the live reload is activated. The edition of any files in your folder will provoke the auto-reloading of your api:Console in your browser.
At the root of your RAML documentation folder where the main.raml MUST be present, create the following Dockerfile:
FROM slecache/api-console
Then, run the build command :
docker build -t your_image_name .
All yours documentations files will be copied in the /data/dist/apis of the Docker Image.
Issues
If you have any problems with or questions about this image, please contact us through a GitHub issue.
| Back | FazBrowse Home | New Git URL |