Sunday, July 16, 2017

23/06/2017

Build Node.js RESTful APIs


What is REST?

💖Rest is an acronym for Representational State Transfer. It is web standards architecture and HTTP Protocol.

 

Setting up the routes

💖Routing refers to determining how an application responds to a client request for a specific endpoint, which is a URI (or path) and a specific HTTP request method (GET, POST, and so on).

💖Each of our routes has different route handler functions, which are executed when the route is matched.



Adding a middleware

💖Middlewares basically intercepts incoming http request and as such you can use them to perform several operations ranging from authentication to validations etc.

 

No comments:

Post a Comment

HTML introduction

HTML stands for Hyper Text Markup Language. HTML describes the structure of web page using markup. HTML elements are the building blo...