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!