-
Notifications
You must be signed in to change notification settings - Fork 108
Using the mock index page
Lazarus Lazaridis edited this page Nov 17, 2017
·
3 revisions
The mock index page displays your defined mocks.
Use the buttons of the Actions
column to edit, delete or activate/deactivate a mock.
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:
The first mock is being server.
Now, let's change the order. Click the Change mock order
button.
Drag with your mouse the first mock and place it under the second mock as shown here:
Save and request again http://localhost:8080/mock
. Voilà!
- DuckRails - 2017 Wiki pages.
- Feel free to request for documentation that you believe is missing by opening issues with the label
wiki