feat(api): add summaries for user information retrieval and update endpoints

This commit is contained in:
Dominik 2025-06-14 19:11:30 +02:00
parent 14ac90ad41
commit 2c114f0a25
Signed by: dominik
GPG key ID: 06A4003FC5049644
2 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import { prisma } from '@/prisma';
* @swagger
* /api/user/{user}:
* get:
* summary: Get user information by ID or name
* description: Retrieve the information of a specific user by ID or name.
* parameters:
* - in: path

View file

@ -13,6 +13,7 @@ import {
* @swagger
* /api/user/me:
* get:
* summary: Get the currently authenticated user's information
* description: Retrieve the information of the currently authenticated user.
* responses:
* 200:
@ -86,6 +87,7 @@ export const GET = auth(async function GET(req) {
* @swagger
* /api/user/me:
* patch:
* summary: Update the currently authenticated user's information
* description: Update the information of the currently authenticated user.
* requestBody:
* required: true