Commit 5bf0610a authored by Isaac Pereira's avatar Isaac Pereira

[API] Adiciona token da competição ao schema

* Status da Invitation crado
parent 60aca262
...@@ -185,7 +185,7 @@ paths: ...@@ -185,7 +185,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Invitations' $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Invitation'
/subscription/submissions: /subscription/submissions:
post: post:
tags: tags:
......
...@@ -133,6 +133,9 @@ SoloSubscriptionSubmission: ...@@ -133,6 +133,9 @@ SoloSubscriptionSubmission:
TeamSubscriptionSubmission: TeamSubscriptionSubmission:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscriptionSubmission https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscriptionSubmission
Invitation:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Invitation
FormTemplate: FormTemplate:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/FormTemplate https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/FormTemplate
......
...@@ -21,6 +21,8 @@ Competition: ...@@ -21,6 +21,8 @@ Competition:
- INACTIVE - INACTIVE
subscription: subscription:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription' $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription'
token:
type: string
Phase: Phase:
required: required:
- label - label
......
...@@ -194,11 +194,17 @@ Invitation: ...@@ -194,11 +194,17 @@ Invitation:
- submission - submission
type: object type: object
properties: properties:
id:
type: integer
token: token:
type: string type: string
subject: subject:
type: string type: string
type:
type: string
enum:
- AVAILABLE
- CONSUMED
- EXPIRED
submission: submission:
type: $ref: '#/SubscriptionSubmission'
$ref: '#/SubscriptionSubmission' \ 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