mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Первый релиз.
Названия конечных точек теперь пишутся в нижнем регистре через знак минуса. У DTO добавлена пара недостающих примеров в документации. Удалён неиспользуемый декоратор IsMap. users.controller.ts - Описана конечная точка "me". - Добавлены конечные точки "change-username" и "change-group", для смены имени пользователя и группы соответственно. users.service.ts - Добавлены методы "changeUsername" и "changeGroup", для смены имени пользователя и группы соответственно.
This commit is contained in:
@@ -54,7 +54,7 @@ export class ScheduleController {
|
||||
@ApiNotFoundResponse({ description: "Требуемая группа не найдена" })
|
||||
@ResultDto(GroupScheduleDto)
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("getGroup")
|
||||
@Post("get-group")
|
||||
getGroupSchedule(
|
||||
@Body() groupDto: GroupScheduleRequestDto,
|
||||
): Promise<GroupScheduleDto> {
|
||||
@@ -73,7 +73,7 @@ export class ScheduleController {
|
||||
@ApiNotFoundResponse({ description: "Требуемая группа не найдена" })
|
||||
@ResultDto(ScheduleGroupsDto)
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Get("getGroupNames")
|
||||
@Get("get-group-names")
|
||||
async getGroupNames(): Promise<ScheduleGroupsDto> {
|
||||
return this.scheduleService.getGroupNames();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user