ELTE-Clean/Clean-Administration-Platform

Get Submissions Endpoint

Closed this issue · 2 comments

Create an endpoint to retrieve student/s submission/s for a specific task.

Endpoint URL:
[GET]
tasks/<taskID>/submissions
query:

userID=<integer>
solutions=<boolean>

If a user ID is specified in the query, then return the submission of that specific user. If not, return all the submissions of the users assigned with that task. solutions parameter decides if the solution is required to be returned or not. The default behavior is false. Thus, only the grade and the user information are returned.

I think you meant

Endpoint URL:
[GET]
grades/<taskID>/submissions
not tasks

@Mohido

I prefer it to be in the tasks API repository since after the / we have <taskID>, which is related to the tasks endpoints.

@the4t4