Simple HTTP API library for Node.js
Warning! This code is experimental and in state of preliminary development. Use at your own risk.
It's under MIT-style open source license -- see https://github.com/Sendanor/nor-api/blob/master/LICENSE.txt.
You can install it simply from NPM:
npm install nor-api
Here's an example HTTP service:
var config = require'nor-config'from__dirname;config_def'port' 3000;var api = require'nor-api';apicreateServerconfig'hello': 'world'return ''+;;
It has resources at locations:
Once running, the HTTP service will be available at http://localhost:3000.
See also nor-config for more details about the configuration.