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

Change how we store Submission Data - Upload endpoint #86

Open
Buwujiu opened this issue Aug 8, 2024 · 0 comments
Open

Change how we store Submission Data - Upload endpoint #86

Buwujiu opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@Buwujiu
Copy link

Buwujiu commented Aug 8, 2024

this endpoint https://lyric.overture-sandbox.cumulus.genomeinformatics.org/api-docs/#/submission/post_submission_category__categoryId__upload. needs refactor.

Change Submission JSON structure is required in order to accommodate new records added, edit records and delete records.

Example of the structure

{
  "inserts": {
    "study": {
      "creator": "",
      "records": [
        {
          "name": "TEST_Cancer_Study",
           "study_id": "TEST_PRO",
           "description": "brain cancer study"
         }
      ],
      "batchName": "study.tsv"
    }
  },
  "updates": {
    "participant": [
      {
        "systemId": "1",
        "oldData": {
          "specimen_tissue_source": "Blood derived - bone marrow"
        },
        "newData": {
          "specimen_tissue_source": "Saliva"
        }
      }
    ]
  },
  "deletes": {
    "participant": [
      { "systemId": "123"}
    ]
  }
}
@leoraba leoraba self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants