Reduce overhead, don't waste your time!
create-serverless api --actions crud --endpoints users
Generates a serverless API with:
- POST
/users
, creates a user - GET
/users
, retrieves all users - GET
/users/{id}
, retrieves a single user by id - DELETE
/users/{id}
, delete a single user by id - PUT
/users/{id}
, update a single user by id package.json
with npm commandscreate
anddeploy
Just add --dynamodb
to the api command and it will create a table with the endpoint name
create-serverless api --actions crud --endpoints users --dynamodb
creates a DynamoDB table users
create-serverless payment --stripe
Generates a serverless payment micro service, ready for Stripe Checkout integration with:
- POST
/create-payment
, creates a Stripe charge
- multiple endpoints
- appending new endpoints to existing ones
- AWS SNS integration,
- AWS Cognito integration
- Generate API w/ API GW from Swagger file
- Generate API w/ API GW from API Blueprint file