Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The backend should have an endpoint for blind structures #200

Closed
1 task done
Tracked by #194 ...
asmahood opened this issue Aug 14, 2023 · 0 comments · Fixed by #209
Closed
1 task done
Tracked by #194 ...

The backend should have an endpoint for blind structures #200

asmahood opened this issue Aug 14, 2023 · 0 comments · Fixed by #209
Assignees
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement

Comments

@asmahood
Copy link
Member

asmahood commented Aug 14, 2023

Description

The backend needs to support creating, reading, and updating structures. All types and parameters are laid out in the miro board below
https://miro.com/app/board/uXjVMCaPwMs=/?share_link_id=630692721419

Approach

  • Add the new base endpoint /events/structures (requires authentication)
    • Create endpoint POST /
      • Implement CreateStructureRequest with proper validation
      • Should insert the structure first, then perform a bulk insert of the blinds with an index from the original list (to preserve order for the future)
      • Should return the structure with the generated ID
    • List endpoint GET /
      • Should return an array of all structures, with just the name and ID, order should be id DESC so the newest items are first
    • Get endpoint GET /${id}
      • Should return the structure with the given ID. The blinds of that structure should be ordered properly using the index
    • Update endpoint PUT /${id}
      • Implement UpdateStructureRequest with proper validation
      • An update should update the structure information, then delete all of the old blind levels, then insert the new ones in the request
      • Return the structure back with the blinds

Related To

Blocked By

Blocks

@asmahood asmahood changed the title The backend should have an endpoint for blind structures Events 2.0 | The backend should have an endpoint for blind structures Aug 14, 2023
@asmahood asmahood changed the title Events 2.0 | The backend should have an endpoint for blind structures The backend should have an endpoint for blind structures Aug 14, 2023
@asmahood asmahood modified the milestone: Sprint 2021.02 Aug 14, 2023
@asmahood asmahood added the type::Feature Issues/Pull requests that implement a new feature/enhancement label Aug 22, 2023
@asmahood asmahood self-assigned this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant