Confirm Register
This commit is contained in:
@@ -119,6 +119,45 @@ paths:
|
||||
}
|
||||
tags:
|
||||
- Register
|
||||
patch:
|
||||
summary: Confirm register
|
||||
description: Confirm a registration
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfirmRequest"
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BooleanResponse"
|
||||
examples:
|
||||
Success:
|
||||
value: true
|
||||
400:
|
||||
description: Missing fields
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorResponse"
|
||||
examples:
|
||||
Missing fields:
|
||||
value: { "message": "Missing code" }
|
||||
404:
|
||||
description: User not found
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorResponse"
|
||||
examples:
|
||||
User not found:
|
||||
value: { "message": "User not found" }
|
||||
tags:
|
||||
- Register
|
||||
/user{id}:
|
||||
get:
|
||||
summary: Get user
|
||||
@@ -312,11 +351,20 @@ components:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
ConfirmRequest:
|
||||
type: object
|
||||
required:
|
||||
- code
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
format: uuid4
|
||||
securitySchemes:
|
||||
BasicAuth:
|
||||
type: apiKey
|
||||
name: token
|
||||
in: header
|
||||
format: uuid4
|
||||
tags:
|
||||
- name: Login/Logout
|
||||
- name: Register
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user