Giter Site home page Giter Site logo

dreamythedev / iot-measure-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 64 KB

A REST API written in JavaScript using node, express and Joi to manipulate measures.

License: MIT License

JavaScript 100.00%
nodejs joi-validation json measure expressjs

iot-measure-api's Introduction

Welcome to iot-measure-api ๐Ÿ‘‹

Version Documentation Maintenance Twitter: 404MomNotFound

A REST API written in JavaScript using node, express and Joi to manipulate measures.

๐Ÿ  Homepage

Install

npm install

Usage

node server.js

Endpoints

Get all measures

GET /measures

Returns an array of JSON objects, each representing one measure.

Get one measure

GET /measure/:id

Returns a JSON object representing one measure

Add 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
}

Modify one measure

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 one measure

DELETE /measure/:id

Deletes the measure with the id requested

Author

๐Ÿค Contributing

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

Show your support

Give a โญ๏ธ if this project helped you!

๐Ÿ“ License

This project is MIT licensed.


This README was generated with โค๏ธ by readme-md-generator

iot-measure-api's People

Contributors

dreamythedev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.