From 76e52d53f4fd11ed3e92d2af83a322f81c1c29af Mon Sep 17 00:00:00 2001 From: Dominik Stahl Date: Sat, 14 Jun 2025 19:11:30 +0200 Subject: [PATCH] feat(api): add summaries for user information retrieval and update endpoints --- src/app/api/user/[user]/route.ts | 1 + src/app/api/user/me/route.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/app/api/user/[user]/route.ts b/src/app/api/user/[user]/route.ts index dd40182..ba9844e 100644 --- a/src/app/api/user/[user]/route.ts +++ b/src/app/api/user/[user]/route.ts @@ -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 diff --git a/src/app/api/user/me/route.ts b/src/app/api/user/me/route.ts index 7bb3276..1a2d665 100644 --- a/src/app/api/user/me/route.ts +++ b/src/app/api/user/me/route.ts @@ -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