How to create a simple fake REST Api with Json-Server

preview_player
Показать описание
This video shows how to create a simple fake REST API with Json-Server. With JSON Server you can simulate a Rest API in a few minutes. I showed the HTTP methods: GET, POST, PUT and DELETE.

0:08 How to install Json-Server
4:04 Starting Json-Server on the command line
4:40 Creating a POST request
6:30 Creating a GET request
7:30 Creating a PUT request
8:50 Creating a DELETE request

Look at the following link to get more information about:

To install json-server (you need Nodejs installed)
npm install -g json-server

Run the server:
Рекомендации по теме