Skip to content

BUG: Remove Envelope Pattern #77

@zdomke

Description

@zdomke

Description of Problem

Our backend/frontend interaction is based around a design pattern where our payload is wrapped in an envelope object. The payload data is attached to an error code and error message.

The backend needs to wrap all data in these envelopes, and the frontend needs to unwrap them. This paradigm isn't necessary as we are able to make a request while expecting one DTO and capture HTTP errors on failure.

Proposed Solution

Refactor the src/services directory to get the DTOs directly from the backend rather than getting the wrapped objects.

Related Issue

Backend issue slaclab/react-squirrel-backend#32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions