Toolbox for developers / Create a fake REST API

Create a Mock REST API

This tool allows you to create mock REST API.

You can create several custom responses, and they will be saved. You must keep your API key for later editing.

Note: CORS requests are automatically accepted from any origin.

User guide:

  • If you already have a 'API KEY', set "Your API KEY" field and click on "Load your mock API" button in order to retrieve your custom responses.
  • Click on the "New custom response" button to display the form to add a custom response
  • Click on the "Add or update" button to add or update a custom response
  • Click on "delete" button to delete a custom response
  • Click on "view" button to display a custom response

Your API KEY (A-Za-z0-9)
Custom responses of your mock REST API


About mock

In object-oriented programming (OOP), mock objects simulate the behavior of real objects in controlled ways. It's like a simulation.

You should use mocks when you can't use the real service / object. For example, sometimes front-end developer wait for the back-end developer. Mock API makes it possible not to wait and not to waste time. Mocking can be extremely powerful and can save a lot of time.

Advantages of Mocking

You can create tests in advance. You can write tests before the service is created, and test your scenarios. Your coworkers can work in parallel.

You can also easily create proof of concepts.

Disadvantages of Mocking

Mocking have also some disadvantages.

It takes extra work, you must evaluate the effort you will put into the Mock.

Mocks are also subject to bugs, there may be differences with the real service.

You can report a bug or give feedback by adding a comment (above) or by clicking "Contact us" link (at the top right hand corner of the page).

Comments







The tools are provided "as is", without warranty of any kind, either express or implied.