Confirm Register

This commit is contained in:
2024-07-22 13:49:33 +02:00
parent 06ce614c2b
commit 2fde820942
5 changed files with 115 additions and 5 deletions
+48
View File
@@ -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