@leisurelink/svcutils
v0.2.3
Published
LeisureLink service utils for restify based APIs.
Downloads
29
Keywords
Readme
svcutils
Service utilities for restify based APIs.
Use
If you're reading this then you are authorized to use the service utils.
In your package.json file, reference this repository:
{
"name": "ur-pkg",
"private": true,
"dependencies": {
"svcutils": "git+ssh://[email protected]:VacationRoost/svcutils.git#0.1.0",
...
},
...
}Methods
fixDate- transforms date strings andmomentinstances into javascriptDateobjects.formatValidationError- helper function that formats a JSON schema validation error into a human readable message. Assumes the validation errors were produced by thejayschemapackage.exposeRoutes- utility function that registers API routes on arestifyserverobject from the routes described in aroute descriptorobject.
