Commit c2c743a5 authored by Rosana Aurélio's avatar Rosana Aurélio

[API] Inclusão de novas rotas na api competition.adm

parent 2737eef7
......@@ -37,6 +37,8 @@ tags:
description: 'Assessment operations'
- name: exams
description: 'Exam operations'
- name: assignment
description: 'Assignments information'
paths:
# Competition
......@@ -1083,6 +1085,96 @@ paths:
schema:
format: int32
type: integer
/assessments/{assessmentId}/assignments:
get:
tags:
- assessments
summary: Retrieve all assignment from assessment
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Assignment'
#Assignment
/assignments:
get:
tags:
- assignment
summary: Retrieves all assignments for the assessment.
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Assignment'
/assignments/{assignmentId}:
get:
tags:
- assignment
summary: Retrieves a specific assignment.
responses:
'200':
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Assignment'
parameters:
- name: assignmentId
in: path
required: true
schema:
format: int32
type: integer
/assignments/{assignmentId}/submissions:
get:
tags:
- assignment
summary: Retrives all submissions from specific assignment
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/AssessmentSubmission'
parameters:
- name: assignmentId
in: path
required: true
schema:
format: int32
type: integer
/assignments/{assignmentId}/submissions/{submissionId}:
get:
tags:
-assignment
summary: Retrieve a specific submission from assignment
responses:
'200':
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/AssessmentSubmission'
parameters:
- name: assignmentId
in: path
required: true
schema:
format: int32
type: integer
- name: submissionId
in: path
required: true
schema:
format: int32
type: integer
# /subscription/templates:
# get:
......
......@@ -157,5 +157,9 @@
},
"Submission": {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/Submission"
},
"Assignment":{
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.json#/Assignment"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment