Skip to content

Commit

Permalink
fix api docs
Browse files Browse the repository at this point in the history
KMUlee committed Apr 25, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 1db828e commit aa70351
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/profile/profile.controller.ts
Original file line number Diff line number Diff line change
@@ -37,8 +37,8 @@ export class ProfileController {
type: ProfileDto,
})
@ApiResponse({
status: 200,
description: 'Get a profile',
status: 201,
description: 'Create a profile',
type: ProfileDto,
})
async createProfile(
@@ -54,8 +54,8 @@ export class ProfileController {
type: ProfileDto,
})
@ApiResponse({
status: 200,
description: 'Get a profile',
status: 201,
description: 'Update a profile',
type: ProfileDto,
})
async updateProfile(
@@ -64,4 +64,18 @@ export class ProfileController {
): Promise<ProfileDto> {
return await this.profileService.updateProfile(user.userId, profile);
}

@Get('/:profileId')
@ApiParam({
name: 'profileId',
type: 'number',
})
@ApiResponse({
status: 200,
description: 'Get a profile',
type: ProfileDto,
})
async getProfileById(@Param('profileId') id: number): Promise<ProfileDto> {
return await this.profileService.getProfileById(id);
}
}

0 comments on commit aa70351

Please sign in to comment.