Skip to content

Sequences ‐ Post Submission

jcadam14 edited this page Mar 7, 2024 · 2 revisions

Post New Submission

---
title: New Submission 
---
sequenceDiagram
    actor Authenticated User
    Authenticated User->>frontend: uploads New Submission
    frontend->>filing_api: POST /v1/filing/institutions/{lei}/filings/{period_name}/submissions body:{upload file}
    filing_api->>submission_repo: add_submission(lei, period, request.user.id, filename)
    filing_api-)submission_processor: upload_to_storage(submission_id)
    alt upload_to_storage successful
        filing_api-->>frontend: return SubmissionDTO
        filing_api-)submission_processor: validate_submission(SubmissionDAO) (state=VALIDATION_IN_PROGRESS)
    else
        filing_api-->SubmissionDAO: state=UPLOAD_FAILED
        filing_api-->>frontend: SubmissionDTO
    end
Loading
Clone this wiki locally