Commit b47c8c5f authored by Gabriel Macena's avatar Gabriel Macena

[API] Renomeia o campo 'oid' para 'id'

parent 8ddb5aab
......@@ -83,7 +83,7 @@ paths:
schema:
type: object
properties:
oid:
id:
type: integer
username:
type: string
......
......@@ -6,7 +6,7 @@
{
"enforceSequence": false,
"locationType": 0,
"oid": 0,
"id": 0,
"status": 0,
"submitterType": 0,
"type": 0,
......@@ -22,12 +22,12 @@
{
"label": "group 1",
"weight": 0,
"oid": 0
"id": 0
}
],
"questions": [
{
"oid": 0,
"id": 0,
"order": 0,
"weight": 0,
"group": 0,
......@@ -43,7 +43,7 @@
```json
{
"oid": 0,
"id": 0,
"answers": [],
"assessment": 0,
"finishedAt": "date-time",
......@@ -60,7 +60,7 @@
```json
{
"oid": 0,
"id": 0,
"answers": [
{
"choice": 0,
......
......@@ -38,7 +38,7 @@ UnprocessableEntityError:
items:
type: object
properties:
oid:
id:
type: integer
message:
type: string
ScheduledEvent:
required:
- oid
- id
- startsAt
- endsAt
properties:
oid:
id:
description: The object identification
type: integer
startsAt:
......@@ -19,7 +19,7 @@ Assessment:
required:
- status
- type
- oid
- id
- resultAvailable
- answerKeyAvailable
- locationType
......@@ -43,7 +43,7 @@ Assessment:
type: string
exam:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Exam.yaml/#/Exam'
oid:
id:
description: Object identifier
type: integer
locationType:
......
QuestionGroup:
required:
- oid
- id
- label
- weight
properties:
oid:
id:
type: integer
label:
type: string
......@@ -13,17 +13,17 @@ QuestionGroup:
type: number
QuestionStatement:
required:
- oid
- id
- content
properties:
oid:
id:
type: integer
content:
type: string
Question:
required:
- type
- oid
- id
- group
- order
- weight
......@@ -37,7 +37,7 @@ Question:
- OBJECTIVE
statement:
$ref: '#/QuestionStatement'
oid:
id:
description: object identifier of this Question
type: integer
group:
......@@ -82,11 +82,11 @@ ObjectiveQuestion:
ExamCover:
required:
- content
- oid
- id
properties:
content:
type: string
oid:
id:
type: integer
Exam:
required:
......@@ -94,7 +94,7 @@ Exam:
- title
- groups
- questions
- oid
- id
properties:
type:
type: string
......@@ -115,14 +115,14 @@ Exam:
oneOf:
- $ref: '#/SubjectiveQuestion'
- $ref: '#/ObjectiveQuestion'
oid:
id:
description: Object identifier
type: integer
Alternative:
required:
- order
- statement
- oid
- id
properties:
order:
title: order
......@@ -131,7 +131,7 @@ Alternative:
statement:
description: the alternative statement
type: string
oid:
id:
description: Object identifier
type: integer
ExamQuestionComplaint:
......
......@@ -2,11 +2,11 @@ Competition:
required:
- subscriptionConf
- name
- oid
- id
properties:
name:
type: string
oid:
id:
type: integer
subscriptionConf:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SubscriptionRule'
......@@ -27,7 +27,7 @@ Phase:
- FINAL
status:
type: integer
oid:
id:
type: integer
events:
type: array
......@@ -88,7 +88,7 @@ ClassificationRule:
required:
- type
properties:
oid:
id:
type: integer
type:
type: string
......@@ -104,7 +104,7 @@ EvaluationRule:
required:
- expression
properties:
oid:
id:
type: integer
expression:
type: string
......@@ -112,7 +112,7 @@ TieBreakCriteria:
required:
- type
properties:
oid:
id:
type: integer
type:
type: integer
......
AssessmentSubmission:
properties:
assessment:
description: The oid assessment that this submission refers to
description: The id assessment that this submission refers to
type: integer
type:
type: string
......@@ -14,7 +14,7 @@ AssessmentSubmission:
type: string
competifier:
type: integer
description: The oid of the competifier that this submission refers to
description: The id of the competifier that this submission refers to
discriminator:
propertyName: type
HandmadeAssessmentSubmission:
......
......@@ -29,7 +29,7 @@ Subscription:
- PREP
- OPEN
- CLOSED
oid:
id:
type: integer
discriminator:
propertyName: type
......@@ -51,7 +51,7 @@ SubscriptionSubmission:
- WAITING_REVIEW
- ACCEPTED
- REJECTED
oid:
id:
type: integer
type:
type: string
......@@ -97,7 +97,7 @@ FormTemplate:
type: array
items:
$ref: '#/FormField'
oid:
id:
type: integer
FormField:
required:
......@@ -128,7 +128,7 @@ FormField:
- TEAM_NAME
- EMAIL
- OTHER
oid:
id:
type: integer
FormAnswer:
title: Root Type for FormAnswer
......@@ -144,7 +144,7 @@ FormAnswer:
type: string
error:
type: string
oid:
id:
type: integer
SubscriptionSection:
title: Root Type for SubscriptionSection
......@@ -161,7 +161,7 @@ SubscriptionSection:
type: array
items:
$ref: '#/FormAnswer'
oid:
id:
type: integer
type:
type: string
......
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