API to capture time series data from client application to genarate relevant metrics for real time dashboard
- Clone the repository
- Navigate to the project folder
- Run
npm install
to install all the required dependencies - Run
sls dynamodb install
to install DynamoDB local plugin(You need to have installed JRE(Java Runtime Environment) in your local machine) - Run
npm run start:dev
to start the serverless offline application locally
Request
- Path:
/{STAGE}/metrics
- Method:
POST
- Required parameters:
- Need to add the required header values in request header
Response
- API returns the
201
on success
Unit tests are written using Jest
- Run
npm run test
to run the unit tests(Make sure to run the serverless offline application in background)