feat(api): add summaries for user information retrieval and update endpoints
This commit is contained in:
parent
14ac90ad41
commit
2c114f0a25
2 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ import { prisma } from '@/prisma';
|
||||||
* @swagger
|
* @swagger
|
||||||
* /api/user/{user}:
|
* /api/user/{user}:
|
||||||
* get:
|
* get:
|
||||||
|
* summary: Get user information by ID or name
|
||||||
* description: Retrieve the information of a specific user by ID or name.
|
* description: Retrieve the information of a specific user by ID or name.
|
||||||
* parameters:
|
* parameters:
|
||||||
* - in: path
|
* - in: path
|
||||||
|
|
|
@ -13,6 +13,7 @@ import {
|
||||||
* @swagger
|
* @swagger
|
||||||
* /api/user/me:
|
* /api/user/me:
|
||||||
* get:
|
* get:
|
||||||
|
* summary: Get the currently authenticated user's information
|
||||||
* description: Retrieve the information of the currently authenticated user.
|
* description: Retrieve the information of the currently authenticated user.
|
||||||
* responses:
|
* responses:
|
||||||
* 200:
|
* 200:
|
||||||
|
@ -86,6 +87,7 @@ export const GET = auth(async function GET(req) {
|
||||||
* @swagger
|
* @swagger
|
||||||
* /api/user/me:
|
* /api/user/me:
|
||||||
* patch:
|
* patch:
|
||||||
|
* summary: Update the currently authenticated user's information
|
||||||
* description: Update the information of the currently authenticated user.
|
* description: Update the information of the currently authenticated user.
|
||||||
* requestBody:
|
* requestBody:
|
||||||
* required: true
|
* required: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue