You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
There are scenarios where curators need to update the file type for all studies in a submission or for a specific GCST ID. This requires the creation of a new endpoint in the gwas-sumstats-service that allows curators to send a request via curl to update file types and regenerate the corresponding YAML metadata.
Acceptance Criteria:
A new endpoint is implemented in the gwas-sumstats-service to handle file type updates.
The endpoint accepts a request to update file types for:
All studies in a submission.
A specific study identified by its GCST ID.
The endpoint regenerates the YAML metadata for the affected studies after updating the file types.
The endpoint is accessible via curl and returns appropriate responses (e.g., success, failure, or validation errors).
Proper error handling is implemented for invalid requests or missing data.
Documentation is updated to include usage examples for the new endpoint.
Description:
There are scenarios where curators need to update the file type for all studies in a submission or for a specific GCST ID. This requires the creation of a new endpoint in the
gwas-sumstats-service
that allows curators to send a request viacurl
to update file types and regenerate the corresponding YAML metadata.Acceptance Criteria:
gwas-sumstats-service
to handle file type updates.curl
and returns appropriate responses (e.g., success, failure, or validation errors).Proposed Endpoint:
POST
/v1/update-file-type
200 OK
with a message confirming the update and metadata regeneration.400 Bad Request
or404 Not Found
with an error message.Example Curl Request:
The text was updated successfully, but these errors were encountered: