Commit 58049c0a authored by Isaac Pereira's avatar Isaac Pereira

[API] Adiciona responses de erro para os endpoints de autenticação e registro de usuário

parent 5083633a
...@@ -43,6 +43,12 @@ paths: ...@@ -43,6 +43,12 @@ paths:
application/json: application/json:
schema: schema:
type: string type: string
'422':
description: 'validation error'
content:
application/json:
schema:
type: string
/register: /register:
post: post:
tags: tags:
...@@ -66,7 +72,7 @@ paths: ...@@ -66,7 +72,7 @@ paths:
required: true required: true
responses: responses:
'200': '200':
description: '' description: 'registered user'
content: content:
application/json: application/json:
schema: schema:
...@@ -80,6 +86,12 @@ paths: ...@@ -80,6 +86,12 @@ paths:
type: string type: string
email: email:
type: string type: string
'422':
description: 'validation error'
content:
application/json:
schema:
type: string
/competition: /competition:
get: get:
......
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