responses property

All reponses to return from an endpoint. For example, user/1 or users?limit=20&offset=1. Automatically prefixed with $baseEndpoint/.

Responses can be either a file path or a custom response.

For files, the path is relative to the top-level /test directory containing stub data and must end in .json. For example, api/user.json in my-app/test/api/user.json

For custom responses, the return value will be exact. This class will not attempt to decode JSON for a custom response; it's recommended to submit a Map instead for JSON responses.

Implementation

final Iterable<StubOfflineFirstRestResponse> responses;