DEV Community

Cover image for Let's build the best REST API mocker tool together💪
johannchopin
johannchopin

Posted on

Let's build the best REST API mocker tool together💪

Several months ago I released the first version of the open source project Restapify.

In simple terms, it is a CLI that enables you to serve a mocked REST API by using an intuitive and developer friendly JSON file structure (like you will see for Nextjs). For example you could create an API with users and posts like that...

📂 api
┣ 📂 users
┃ ┣ 📜 _.json
┃ ┣ 📂 [userid]
┃ ┃ ┗ 📜 _.json
┃ ┃ ┗ 📜 _.404.{NOT_FOUND}.json
┃ ┃ ┗ 📜 _.DELETE.json
┃ ┃ ┗ 📜 _.POST.201.json
┣ 📂 posts
┃ ┗ 📜 [postid].json
┃ ┗ 📜 my-post.PUT.json
┣ 📜 posts.json
Enter fullscreen mode Exit fullscreen mode

...and then deploy it locally using restapify serve api/. Checkout the initial post to learn more about it.

This project helps me a lot when developing my apps and I think it could help many other developers by its ease of use and the fact that it is free. So if you want to see it develop further, it would be great if you could test it and give feedback on what could be improved😉

If you always wanted to participate in a project but didn't dare, don't hesitate. We all started without experience and Restapify is open to young collaborators who want to take their first steps in the world of open-source.

If you are interested or curious take the time to visit the official website or the repo directly:

GitHub logo johannchopin / restapify

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

Thanks for all the feedbacks👍

Top comments (3)

Collapse
 
liyasthomas profile image
Liyas Thomas

This is awesome. We're building hoppscotch.io - an open source API development and testing ecosystem alternative to Postman. Feel free to test your mocking API with this tool.

We ❤️ open source.

GitHub logo hoppscotch / hoppscotch

👽 Open source API development ecosystem. https://hoppscotch.io

Collapse
 
johannchopin profile image
johannchopin

Aha I know this tool well 😉 really really good job on this one👍 since you have a lot of experience in the open-source world, please don't hesitate to share what you would improve in restapify. That will help me a lot 💪

Collapse
 
jonesbrown profile image
Jones Brown

Solid article! If you're looking for a robust mock API solution, give Apidog a try. It's been a lifesaver for me, especially with its real-time collaboration features. Kudos to the devs!