Skip to content

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

License

Notifications You must be signed in to change notification settings

johannchopin/restapify

Repository files navigation

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 the same time to code than the real API, ...). Restapify try to make this process even faster with a file structure close to the one that you can see in Nextjs or Sapper and some developer friendly syntaxes to populate your json files.

Features

  • 💡 Incredible DX - Intuitive files structure and JSON syntax
  • JSON valid - You will only use .json files that follows the ECMA-404 standard
  • 🎛 Dashboard - Out of the box SPA to manage and explore your mocked API
  • 💻 CLI - Use the CLI for an instant deployment
  • 🔥 Built in hot watcher - Directly see your changes after a file update
  • 📝 Fakerjs implementation - Intuitive syntax to quickly populate your API responses
  • 🚨 Events handler - Execute callbacks on specific events
  • 🛡 TypeScript support

Documentation

Checkout the documentation on the website or directly read it from the Markdown source file.

Contributing

All remarks are welcome so feel free to open an issue. Wants to collaborate? Please read the contributing guidelines.

About

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

Topics

Resources

License

Stars

Watchers

Forks