Posts

Showing posts with the label rest api server

Create A REST API With JSON Server

Image
In the following will learn how to setup JSON Server and publish a sample REST API Most of the time we will not get the flexible dummy REST API end points to practice or learn to validate the CRUD operations, we have an option to create full fake REST API with zero coding Reference Installing JSON Server JSON Server is available as a NPM package, The installation can be done by using the Node.js package manager, since we are going to use NPM packages we required Node.js to be installed before moving further Install Node.js - download the Node.js and install as per your system requirements (Download Node.js here)  and confirm the Node.js is installed successfully on your system as per following the steps shown below  Install JSON Server - We will install JSON Server now using the NPM package, run the below in command prompt    npm install json-server (or) npm install -g json-server **  by adding -g option we make sure the package is installed globally on our...