Create REST API without using any backend

You could use json-server to serve a JSON file. It supports “canonic” ways to express RESTful requests. This tool can be used on a dev machine or on a intranet server. Here’s a blog post about how to set it up.

My JSON Server is a service that does the same exact thing in the Internet environment for you. There are also competing services with similar functionalities, e.g. myjson.com. I’m sure you will find more if you search online.


P.S. I’m sure you’ll need to do some massaging to actually translate .txt -> .json. I’ve never seen services that work against .txt files rather than .json ones.

Ugh. I really like question edits that invalidate the answers.

Leave a Comment