HenintsoaRaza / lab4

lab4 node_js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Logo

ECE-NodeJS-Project Lab 3

Coverage Status

Lab 3 allows to:

  • add metrics
  • get one metric by key
  • get all metrics
  • delete one metric by key

#Prerequisites

Before you begin, ensure you have met the following requirement:

  • You have to install Node.js

Installing lab3

To install lab 3:

#Using lab3

go to lab3 terminal npm run start

Post some metrics with Postman

  • Set up a POST request on /metrics
  • Set the header Content-Type:application/json
  • Add an array of metrics as RAW body :
    • [{ "timestamp":"1384686660000", "value":"10" }]

localhost:8082/metrics/getAll <!---in order to retrieve all metrics ---> localhost:8082/metrics/getOne <!---in order to retrieve one metric by key ---> localhost:8082/metrics/delOne <!---in order to delete one metric by key --->

#Contributors

Wang James - Henintsoa Razafindrazaka

#Contact

About

lab4 node_js


Languages

Language:TypeScript 61.8%Language:HTML 38.2%