-
Notifications
You must be signed in to change notification settings - Fork 4
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
EVA-3696 - Retrieve Submission details endpoint #17
base: main
Are you sure you want to change the base?
Conversation
src/main/java/uk/ac/ebi/eva/submission/service/SubmissionService.java
Outdated
Show resolved
Hide resolved
@Operation(summary = "This endpoint retrieves all the submissions from the database with given step and status") | ||
@Parameters({ | ||
@Parameter(name="step", description = "The processing step of the submission.", | ||
required = true, in= ParameterIn.PATH), | ||
@Parameter(name="status", description = "The status of the submission processing step.", | ||
required = true, in= ParameterIn.PATH) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think this is the wrong summary & parameters...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
src/main/java/uk/ac/ebi/eva/submission/controller/admin/AdminController.java
Outdated
Show resolved
Hide resolved
src/test/java/uk/ac/ebi/eva/submission/integration/SubmissionWSIntegrationTest.java
Outdated
Show resolved
Hide resolved
public ResponseEntity<?> getSubmissionsDetail( | ||
@PathVariable("submissionId") String submissionId) { | ||
SubmissionDetails submissionDetail = submissionService.getSubmissionDetail(submissionId); | ||
return new ResponseEntity<>(submissionDetail, HttpStatus.OK); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also handle SubmissionDoesNotExistException
like the other endpoints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: April Shen <april.tuesday@gmail.com>
@Parameter(name="step", description = "The processing step of the submission.", | ||
required = true, in= ParameterIn.PATH), | ||
@Parameter(name="status", description = "The status of the submission processing step.", | ||
@Parameter(name="submissionId", description = "Id of the submission whose status needs to be updated", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Parameter(name="submissionId", description = "Id of the submission whose status needs to be updated", | |
@Parameter(name="submissionId", description = "Id of the submission to fetch", |
No description provided.