DEV Community

Discussion on: What was your win this week?

Collapse
 
johannchopin profile image
johannchopin • Edited

I finalized the v2.2.0 of my open-source nodejs package restapify that enable you to easily mock a rest API by simply using a JSON file structure.

I started sharing it to other developer by publishing a post here on dev.to. Thanks again for this incredible community

GitHub logo johannchopin / restapify

Quickly and easily deploy a mocked REST API by using an intuitive and developer friendly JSON file structure

Restapify

restapify cover


npm


test workflow


codecov


This projet uses SemVer for versioning


Gitmoji


Restapify is a tool that allows you to quickly and easily deploy a local REST API by using an intuitive and developer friendly JSON file structure.


Summary

Why Restapify

When you start a new frontend project when the backend is not yet ready, you quickly come to the question of how to retrieve the data to be displayed. There are then many solutions that come with advantages but also some inconveniences. It's possible to use a tool like postman but it's not 100% free and require an account, to simply fetch local JSON data but it only supports a GET request or use a mocker library like json-server, mocker-api or http-fake-backend.

The problem of most of this libraries is the way you have to define your API endpoints (a single file for all the routes, javascript files that took almost…