Thursday, December 8, 2016

Create IOT back-end with REST API

 

If you are a developer or an IT student most probably you heard this word "REST". Actually what is this REST ??? 







REST standards for REpresentational State Transfer. It is an architectural way of communicating with most of web services of today.

REST is the popular way of communicating with most of web services today. Most of API of web services use REST architecture ( they are called RESTAPIs ). REST typically runs over HTTP protocol. 

Let's understand what is REST 

Imagine there is a student database system that you need to create, update, display and delete. Assume student database in internet.

Using one single URL if you can do all of above operations how awesome is that :). REST is a that kind of architecture.

example URL : studentDB/ 

if you want to 

  • create new student record simply send POST http request to studentDB/
  • get Student info send GET http request to studentDB/{student id}
  • update student info send PUT http request to studentDB/{student id}
  • delete student record sent DELETE http request to studentDB/{student id}  

using different http methods we easily make our own rest services using json or xml data parsing.

Along with this tutorial series we use

  •  mongoDB as database client 
  • nodejs as our server side handler 
  • Angular.js as our front-end visualizer.
Hope you will join with next part too.

   


  

No comments:

Post a Comment