feat(api): add summaries for user information retrieval and update endpoints
This commit is contained in:
parent
4243eb8934
commit
76e52d53f4
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue