Commit b47c8c5f authored by Gabriel Macena's avatar Gabriel Macena

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

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