Member-only story

Uploading JSON Data Online as HTTP Endpoints with Npoint.io

Liu Zuo Lin
2 min readSep 5, 2021

--

If you’ve worked on smaller projects using frontend frameworks such as VueJS, Angular or React, chances are that you had to spin up a simple backend application, and have your frontend make HTTP REST calls to your backend.

I feel your pain, but I’ve recently found a solution that allows me to create backend endpoints without having to go through the trouble of setting up a dummy backend application. Here it is:

https://www.npoint.io/

What Npoint.io is

Npoint.io allows you to upload JSON files online, and it assigns a HTTP GET endpoint to your JSON file. Your frontend applications can then make REST API calls to these endpoints that serve as a psuedo-backend.

Let’s say I want a backend endpoint that returns me the JSON {“message”: “hello world”}, and do not wish to create a backend application just for this. With npoint.io, you can simple upload the JSON file you want, save it, and an online HTTP endpoint will be available at the bottom of the page

If I visit the URL at the bottom, it’ll simply return a response containing the same JSON…

--

--

Liu Zuo Lin
Liu Zuo Lin

Written by Liu Zuo Lin

SWE @ Meta | [Ebook] 101 Things I Never Knew About Python: https://payhip.com/b/vywcf

No responses yet