Content HUB API Client (mock/test client)

Description

Acceptance criteria

  1. Create a component that encapsulates the actual communication with the backend API.

  2. The actual fetching of data from the API will not be implemented here, since the API is not created yet.

  3. Create a description of input/output data for each public function.

  4. The test client will only return hardcoded testdata, but the interface should be the same, so that we don't have to change the Content HUB client/app when the API is in place.

  5. The test client should cover the following scenarios:

  • Errors from the backend (E.g: 500)

  • Connection errors

  • Slow network (e.g: 10 seconds to load from backend)

  • Large sets of search results (so that the paginator may be tested well)

  • No results

This component is described here:
https://docs.google.com/document/d/1RNkZGyr7avu2bkyODXsAxXkvgIG73IrKv9ieviLTeKg

Acceptance Criteria

None

Assignee

Pål Jørgensen

Reporter

Pål Jørgensen

Funding

None

Code reviewer

Thomas Marstrander

Released

None

Time tracking

4h

Sprint

None

Fix versions

Priority

Medium
Configure