Skip to content

Using the mock index page

Lazarus Lazaridis edited this page Nov 17, 2017 · 3 revisions

The mock index page displays your defined mocks.

DuckRails index page

Actions

Use the buttons of the Actions column to edit, delete or activate/deactivate a mock.

Mock order

The mock order does not affect the behavior of the endpoints unless you have mocks with the same http method and route path as shown in the picture above. As you can see, both mocks are supposed to serve get requests to /mocks.

Let's see what happens: DuckRails first mock request

The first mock is being server.

Now, let's change the order. Click the Change mock order button. DuckRails mock order page

Drag with your mouse the first mock and place it under the second mock as shown here: DuckRails mock order page changed

Save and request again http://localhost:8080/mock. Voilà! DuckRails second mock request