Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 947 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 947 Bytes

Serverless REST API in Java/Maven using DynamoDB

Install Pre-requisites:

npm install -g serverless

Build the Java Project

mvn clean install

Deploy the serverless app

sls deploy

....
  None
endpoints:
  GET - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/doctors
  GET - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/doctors/{id}
  POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/doctors
  DELETE - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/doctors/{id}

......

Removing the services

sls remove