Posts

Showing posts from September, 2019

How to mimic a fully functional REST API using JSON Server node module.

Image
What is a RESTful API? A Representational State Transfer (REST) API is a web service that uses HTTP requests to GET, POST, PUT, PATCH and DELETE data from server. RESTful systems provide faster performance, reliability and scalability by updating and reusing components without affecting the performance while running on a server.   What is a JSON Server? JSON Server is a Node Module that you can use to create a mocked version of REST JSON web service on the go. All you need is a json file for storing your data. Before directly getting started with our discussion, let’s go through why we actually need to fake/mock our REST API while we can setup one on any server with limited knowledge. Well, you can go through setting up a basic RESTful web service “ quickly ” in this never ending tutorial guide https://stackify.com/rest-api-tutorial And if you are basically a front-end developer who wants to strictly focus on developing an application, test it with server dat