Skip to content
chernser edited this page Sep 22, 2012 · 3 revisions

DummyAPI supports mocking authentication.

Note: it is possible to send unauthorized request without credentials, what doesn't not cause 401 or 403 status codes.

Create User

User is created by full filling form on the authentication panel and pressing Create

Fields "Name" and "Password" are mandatory and used while login request. Password can be empty.

Assign Resource

If you need to return extra information in response to login request, you need to assign resource instance to user.

To do this:

  1. create or select existing user
  2. select resource
  3. select resource's id
  4. press Save

After this linked resource's fields will be returned in response to login request mixed with user parameters like "access token".

Note: If resource is not found for any reason, login will be successful anyway, but without resource.

Clone this wiki locally