aws-serverless-restful-wrapper
@cloudifyjs/restful.
NOTE This package is no longer maintained and was moved toAn API Gateway event wrapper for AWS Lambda functions for REST APIs
Install
$ npm install aws-serverless-restful-wrapper
Features
- Support request validation with @hapijs/joi
- Support RESTful principle
- Support HATEOAS principle
Usage
Fetch a single document
GET /todos/{id}
const restful = moduleexportsget = restful
API Gateway Response:
HTTP 200Content-Type: 'application/json'
Fetch a collection
const restful = moduleexportsget = restful
API Gateway Response:
HTTP 200Content-Type: 'application/json'
Using Joi validation
const Joi = const restful = moduleexportsget = restful
Contributing
- Write docs
- Suggest a feature
- Submit PRs
- Logging
- Support for XML based REST
- Write exemples
License
This source code is licensed under the MIT license found in the LICENSE.txt file.