Make Fake API In Just 2 Minutes

When we are developing the API and we have to share it with someone who is waiting for your API then we can use it.

Arnish Gupta
3 min readJul 6, 2020

API is the part of backend services when we developing a project for multiple platforms such as (WEB, Android, and IOS) then we use it to collect the data. Sometimes we stuck in the frontend process because API is not available, So we can solve this problem using the Fake API.

Photo by Pankaj Patel on Unsplash

Hello everyone, I was also facing this problem many times. After some R&D I got the solution to this problem for making a FAKE API. Let’s look at this.

Mockable: Mockable provide an online free platform that we can make the API quickly, If you want to use your domain then it is chargeable. Let’s understand this process in simple steps:

  • Step 1: Open Mockable Site. Click Try Now ! button.
  • Step 2: You can select REST/SOAP as per your requirement. I select the REST service.

Keep in mind that this service is available for 24 hours If we use it without creating an account

  • Step 3: Write the text in Path section input box that is easier for you to identify, I write testing.

Select Verb means Which request type you want. I select GET request.

There are some other options you can select in the API. (Headers, Response-Status, Content-Type, Content-Encoding)

  • Step 4: Write your expected response in the response body section and save it. like this:
  • Step 5: Go to My domains section, you can find it in top of the page. You can see the dashboard like this:

Select MANAGE Button, It will list all the APIs that you created. You can switch it to SOAP if you created the SOAP

  • Step 6: Click Actions in the drop-down and select Start, you can enable the Log also if you want to trace the API. After started the API then the dashboard looks like this:

For getting the URL of the API, open Actions drop-down again, and select Copy live URL you can see the two URLs with HTTPS and HTTP.

Great, that is so simple. Let’s test the API.

I created the GET API so I can test it on the browser but if you select other request type then test it on Postman tool.

That’s it. I hope it will help you to save time. If you like the article then wait for a second and claps for me.

Thank you for reading !!

--

--

Arnish Gupta

Learn Blockchain with me every Monday at 9AM (GMT+5:30).