Submission endpoint: getSubmissionDetails
Endpoint (Method)
| Params | Type | Comment |
|---|---|---|
| Input | Long | submissionId |
| Output | SubmissionViewDTO | submissionDto |
What does this method do?
- retrieves a SubmissionViewDTO based on ID (querying the database for the given submissionId)
DTOs Required
Name: SubmissionCreateDTO
This DTO is a:
-
Create -
Patch -
View
The DTO has the following fields:
| Type | Name | Comment |
|---|---|---|
| Long | id | |
| Assignment | assignment | |
| Person | submitter | |
| StudentGroup | group | |
| LocalDateTime | submissionTime |
Name: SubmissionPatchDTO
This DTO is a:
-
Create -
Patch -
View
The DTO has the following fields:
| Type | Name | Comment |
|---|---|---|
| Double | grade |
Name: SubmissionViewDTO
This DTO is a:
-
Create -
Patch -
View
The DTO has the following fields:
| Type | Name | Comment |
|---|---|---|
| Person | submitter | |
| LocalDateTime | submissionTime | |
| Double | grade |