feat(api): add tags to event and user routes for better categorization
This commit is contained in:
parent
51d02324bd
commit
787edf8e1f
8 changed files with 28 additions and 1 deletions
|
@ -8,6 +8,8 @@ import { NextResponse } from 'next/server';
|
|||
* get:
|
||||
* summary: Get a specific participant's details in an event
|
||||
* description: Returns the details of a specific participant in an event.
|
||||
* tags:
|
||||
* - Event_Participant
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: eventID
|
||||
|
@ -150,6 +152,8 @@ export const GET = auth(async (req, { params }) => {
|
|||
* delete:
|
||||
* summary: Remove a participant from an event
|
||||
* description: Removes a participant from an event. Only the organizer can remove participants.
|
||||
* tags:
|
||||
* - Event_Participant
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: eventID
|
||||
|
@ -282,6 +286,8 @@ export const DELETE = auth(async (req, { params }) => {
|
|||
* patch:
|
||||
* summary: Update a participant's status in an event
|
||||
* description: Updates the status of a participant in an event. Only the participant can update their own status.
|
||||
* tags:
|
||||
* - Event_Participant
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: eventID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue