4
2 Comments

No-code mock API builder

Hey everyone, I'm working on finishing up a weekend project and wanted to get some feedback to know if I should actually push it out live.

Basically it's just a tool to create simple mock JSON APIs to help with front end development while waiting on the backend to be developed, or for use in testing. Essentially you just make a POST request to my service with any API endpoint, with a JSON body, and it creates the mock route for you to access later.

For example POST: myservice.com/api/users/1/posts/5 with a body:

{
  user: {
       userId: 1,
       posts: [ {
           postId: 5,
       }],
  }
}

That data is then persisted at the endpoint. So anywhere in your frontend you make a normal GET request to the same endpoint and your data will be returned as if you were using a real API. You can also send a PUT request to update the data and of course a DELETE request to delete it.

on September 17, 2021
  1. 1

    Good idea, I like it.
    What would you charge for this?

    1. 1

      Currently have it set up with a usage based pricing for each API call, where you prepay for API credits so you don’t have to worry about any crazy bills if you accidentally trigger a ton of calls. Pricing is still a work I process but it’s discounted on scale so 10,000 api credits is $10 and 1,000,000 credits is $100.