-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,52 @@ export class UsersController { | |
constructor() {} | ||
|
||
@Get('search') | ||
@ApiOperation({ | ||
summary: 'Search users', | ||
description: '검색할 유저의 nickname or email', | ||
deprecated: true, | ||
tags: ['users'], | ||
}) | ||
@ApiResponse({ | ||
status: 200, | ||
description: '검색 결과를 반환한다.', | ||
type: GetUsersRequestDto, | ||
}) | ||
@ApiResponse({ | ||
status: 400, | ||
description: '입력된 인자가 부적절합니다', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 200, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
@ApiResponse({ | ||
status: 500, | ||
description: '', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
errorCode: { type: 'number', description: '에러코드', example: 1 }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
async getUsersDeprecated(@Query() getUsersRequestDto: GetUsersRequestDto) {} | ||
|
||
Check failure on line 69 in backend/src/users/users.controller.ts GitHub Actions / build (20)
|
||
@Get() | ||
@ApiOperation({ | ||
summary: 'Search users', | ||
description: '검색할 유저의 nickname or email', | ||
|
@@ -67,6 +113,37 @@ export class UsersController { | |
async getUsers(@Query() getUsersRequestDto: GetUsersRequestDto) {} | ||
|
||
@Post('create') | ||
@ApiOperation({ | ||
summary: 'Create users', | ||
description: '유저를 생성한다.', | ||
deprecated: true, | ||
tags: ['users'], | ||
}) | ||
@ApiResponse({ | ||
status: 200, | ||
description: '유저 생성 성공!', | ||
}) | ||
@ApiResponse({ | ||
status: 400, | ||
description: 'Client Error Bad Request', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 200, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
async createUsersDeprecated(@Body() createUsersRequestDto: CreateUsersRequestDto) {} | ||
Check failure on line 144 in backend/src/users/users.controller.ts GitHub Actions / build (20)
Check failure on line 144 in backend/src/users/users.controller.ts GitHub Actions / build (22)
|
||
|
||
Check failure on line 145 in backend/src/users/users.controller.ts GitHub Actions / build (20)
|
||
@Post() | ||
@ApiOperation({ | ||
summary: 'Create users', | ||
description: '유저를 생성한다.', | ||
|
@@ -97,6 +174,22 @@ export class UsersController { | |
async createUsers(@Body() createUsersRequestDto: CreateUsersRequestDto) {} | ||
|
||
@Post('update/:id') | ||
@ApiOperation({ | ||
description: '유저 정보를 변경한다.', | ||
deprecated: true, | ||
tags: ['users'], | ||
}) | ||
@ApiResponse({ | ||
status: 200, | ||
description: '유저 정보 수정 성공!', | ||
type: UpdateUsersResponseDto, | ||
}) | ||
async updateUsersDeprecated( | ||
@Param('id') id: string, | ||
@Body() updateUsersRequestDto: UpdateUsersRequestDto, | ||
) {} | ||
|
||
Check failure on line 191 in backend/src/users/users.controller.ts GitHub Actions / build (20)
|
||
@Post(':id') | ||
@ApiOperation({ | ||
description: '유저 정보를 변경한다.', | ||
tags: ['users'], | ||
|
@@ -112,6 +205,95 @@ export class UsersController { | |
) {} | ||
|
||
@Patch('myupdate') | ||
@ApiOperation({ | ||
description: '내 유저정보를 변경한다.', | ||
deprecated: true, | ||
tags: ['users'], | ||
}) | ||
@ApiResponse({ | ||
status: 200, | ||
description: '유저 정보 변경 성공!', | ||
}) | ||
@ApiResponse({ | ||
status: 400, | ||
description: '들어온 인자가 없습니다..', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 200, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
@ApiResponse({ | ||
status: 403, | ||
description: '수정하려는 계정이 본인의 계정이 아닙니다', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
description: 'error description', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 206, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
@ApiResponse({ | ||
status: 409, | ||
description: '수정하려는 값이 중복됩니다', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
description: '203, 204 에러', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 204, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
@ApiResponse({ | ||
status: 500, | ||
description: 'Server Error', | ||
content: { | ||
'application/json': { | ||
schema: { | ||
type: 'object', | ||
description: 'error description', | ||
properties: { | ||
errorCode: { | ||
type: 'number', | ||
description: '에러코드', | ||
example: 1, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) | ||
async myUpdateUsersDeprecated( | ||
@Body() myUpddateUsersRequestDto: MyUpddateUsersRequestDto, | ||
) {} | ||
|
||
Check failure on line 295 in backend/src/users/users.controller.ts GitHub Actions / build (20)
|
||
@Patch('/me') | ||
@ApiOperation({ | ||
description: '내 유저정보를 변경한다.', | ||
tags: ['users'], | ||
|
@@ -199,7 +381,7 @@ export class UsersController { | |
@Body() myUpddateUsersRequestDto: MyUpddateUsersRequestDto, | ||
) {} | ||
|
||
@Get('EasterEgg') | ||
@Get('EasterEgg') // suggesting to change this to 'version' | ||
@ApiOperation({ | ||
description: '집현전 개발 버전을 확인합니다.', | ||
tags: ['users'], | ||
|