Skip to content

Instantly share code, notes, and snippets.

@mfrister
Last active November 11, 2015 10:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfrister/f2af7c6db782e0fb4683 to your computer and use it in GitHub Desktop.
Save mfrister/f2af7c6db782e0fb4683 to your computer and use it in GitHub Desktop.
RAML API Console for Development

Installation

npm install -g http-server

API Console unfortunately is not available on NPM. See its README for installation instructions.

You might have to run grunt after installation. Grunt opens a web page, just close it.

Run:

cd your_app/raml
http-server --cors -c5 -a 127.0.0.1

The HTTP server has CORS enabled for all domains, a cache time of 5 seconds (default is 1 hour) and listens on the loopback interface.

Then go to

file:///PATH/TO/api-console/dist/index.html?raml=http://localhost:8080/your_app.raml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment