Package Exports
- api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
api
The easiest way ever to create an awesome API... no, really. It's as simple as:
$ npm install api -g
$ api init
[ Edit files]
$ api deployThere's a bunch of stuff below, but seriously... just run those commands above, and see how simple it is!
Usage (CLI)
With npm:
npm install api -gWith yarn:
yarn global add apiThis gives you the api command line program
# Displays usage information
api
# In a fresh directory
api initUsage (node module)
With npm:
npm install api --saveWith yarn:
yarn add apiconst api = require('api');api.create(name, function)
nameis the name of the of the actionfunctionis the code to invoke when this action is run
function is invoked with (data, api)
datais an object containing parameters passed to your actionsapiis an object containingerrorandsuccessmethods to call on completion