feat: service/controller prototype

This commit is contained in:
2025-06-19 18:37:19 +03:00
parent 912470b6e2
commit 87878f15a3
12 changed files with 258 additions and 12 deletions

View File

@@ -5,6 +5,22 @@ definitions:
healthy:
type: boolean
type: object
models.LoginRequest:
properties:
password:
type: string
totp:
type: string
username:
type: string
type: object
models.LoginResponse:
properties:
access_token:
type: string
refresh_token:
type: string
type: object
info:
contact: {}
description: Easy and feature-rich wishlist.
@@ -29,9 +45,20 @@ paths:
post:
consumes:
- application/json
parameters:
- description: desc
in: body
name: request
required: true
schema:
$ref: '#/definitions/models.LoginRequest'
produces:
- application/json
responses: {}
responses:
"200":
description: desc
schema:
$ref: '#/definitions/models.LoginResponse'
summary: Acquire tokens via login credentials (and 2FA code if needed)
tags:
- Auth
@@ -148,7 +175,7 @@ paths:
- application/json
responses:
"200":
description: desc
description: Says whether it's healthy or not
schema:
$ref: '#/definitions/controllers.HealthStatus'
summary: Get health status