How to Fake or Mock REST API with JSON-Server

preview_player
Показать описание
In this video we will see How to create a Fake REST API with JSON-Server.
Creating a JSON Sever on your local machine which emulates itself as REST API and implementing CRUD using POSTMAN.

Description : We will create a json server using an npm package and implementing CRUD operations using POSTMAN.

How to install
node js should be installed
npm install -g json-server

CRUD
// CREATE
// READ
// UPDATE
// DELETE
What is REST ? What is a REST API ?
REST is an architectural style which is based on web-standards and
the HTTP protocol. This style was initially described by Roy Fielding in 2000. Roy Fielding was also One of the principal authors of the HTTP specification. REST stands for REpresentational State Transfer.
The architectural style of the web.
So what does that even mean??
REST is a set of design criteria and not the physical structure (architecture) of the system REST is not tied to the ‘Web’ i.e. doesn’t depend on the mechanics of HTTP ‘Web’ applications are the most prevalent – hence RESTful architectures run off of it.
Representational State Transfer refers to transferring "representations". You are using a "representation" of a resource to
transfer resource state which lives on the server into application state on the client.
#REST #JSONServer #npm #node #noejs
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме