A REST API written in JavaScript using node, express and Joi to manipulate measures.
๐ Homepage
npm install
node server.js
GET /measures
Returns an array of JSON objects, each representing one measure.
GET /measure/:id
Returns a JSON object representing one measure
POST /measure
Add one measure to the array of the measures, the request body should be formatted this way :
{
"unit": "celcius" || "fahrenheit",
"type": "temperature",
"name": "$name",
"value": $value
}
PUT /measure/:id
Modify one measure in the array of the measures, the request body should be formatted this way :
{
"unit": "celcius" || "fahrenheit",
"type": "temperature",
"name": "$name",
"value": $value
}
DELETE /measure/:id
Deletes the measure with the id requested
- Twitter: @404MomNotFound
- Github: @DreamyProtect
This repository was made during a class session at the ENI CS School, and is not made to receive any contribution, however, if you have any question or need any advice concerning the code, I'll gladly answer you, so feel free to create issues
Give a โญ๏ธ if this project helped you!
This project is MIT licensed.
This README was generated with โค๏ธ by readme-md-generator