Generate a JavaScript API client from RAML.
npm install raml-javascript-generator -g
This module depends on raml-generator and can be used globally or locally with JavaScript.
README.md
outputclient.methodName
and client.displayName
annotationsraml-javascript-generator api.raml -o js-client
var jsGenerator = require('raml-javascript-generator')
var output = jsGenerator(/* api, data */)
Generated clients support logging of requests performed. To activate the logging set the NODE_DEBUG
environment variable to the name of the generated client.
The data for the request performed and the response received will be displayed in the output.
Apache License 2.0