-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from tnpfldyd/BE-feature/cache-server/swagger
์บ์์๋ฒ ์ค์จ๊ฑฐ ์ ์ฉ
- Loading branch information
Showing
17 changed files
with
341 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { Controller } from '@nestjs/common'; | ||
import { AppService } from './app.service'; | ||
|
||
@Controller() | ||
export class AppController { | ||
constructor(private readonly appService: AppService) {} | ||
|
||
@Get() | ||
getHello(): string { | ||
return this.appService.getHello(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
|
||
@Injectable() | ||
export class AppService { | ||
getHello(): string { | ||
return 'Hello World!'; | ||
} | ||
} | ||
export class AppService {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
export class CreateBoardDto {} | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
export class CreateBoardDto { | ||
@ApiProperty({ | ||
example: { key1: 'value1', key2: 'value2' }, | ||
description: 'JSON data as an object', | ||
}) | ||
data: Record<string, string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import { PartialType } from '@nestjs/swagger'; | ||
import { CreateBoardDto } from './create-board.dto'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class UpdateBoardDto extends PartialType(CreateBoardDto) { | ||
uuid?: string; | ||
|
||
@ApiProperty({ | ||
example: { key1: 'value1', key2: 'value2' }, | ||
description: 'JSON data as an object for updating the board', | ||
}) | ||
data: Record<string, string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { DocumentBuilder } from '@nestjs/swagger'; | ||
export const swaggerConfig = new DocumentBuilder() | ||
.setTitle('mind-sync db-api') | ||
.setTitle('mind-sync cache-server-api') | ||
.setDescription('API description') | ||
.setVersion('1.0') | ||
.build(); |
16 changes: 16 additions & 0 deletions
16
nestjs-BE/cache-server/src/profiles/dto/create-profile.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateProfileDto { | ||
@ApiProperty({ | ||
example: 'user-uuid-123', | ||
description: 'User UUID for the profile', | ||
}) | ||
user_id: string; | ||
|
||
@ApiProperty({ | ||
example: 'profile-image.png', | ||
description: 'Image URL for the profile', | ||
}) | ||
image: string; | ||
|
||
@ApiProperty({ | ||
example: 'Sample nickname', | ||
description: 'Nickname for the profile', | ||
}) | ||
nickname: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class ProfileSpaceDto { | ||
@ApiProperty({ | ||
example: 'profile-uuid-123', | ||
description: 'UUID of the profile', | ||
}) | ||
profile_uuid: string; | ||
|
||
@ApiProperty({ example: 'space-uuid-456', description: 'UUID of the space' }) | ||
space_uuid: string; | ||
} |
15 changes: 15 additions & 0 deletions
15
nestjs-BE/cache-server/src/profiles/dto/update-profile.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import { PartialType } from '@nestjs/mapped-types'; | ||
import { CreateProfileDto } from './create-profile.dto'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class UpdateProfileDto extends PartialType(CreateProfileDto) { | ||
@ApiProperty({ | ||
example: 'new nickname', | ||
description: 'Updated nickname of the profile', | ||
required: false, | ||
}) | ||
nickname?: string; | ||
|
||
@ApiProperty({ | ||
example: 'new image.png', | ||
description: 'Updated image URL for the profile', | ||
required: false, | ||
}) | ||
image?: string; | ||
|
||
uuid?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateSpaceDto { | ||
@ApiProperty({ example: 'Sample Space', description: 'Name of the space' }) | ||
name: string; | ||
|
||
@ApiProperty({ | ||
example: 'space-icon.png', | ||
description: 'Profile icon for the space', | ||
}) | ||
icon: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import { PartialType } from '@nestjs/mapped-types'; | ||
import { CreateSpaceDto } from './create-space.dto'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class UpdateSpaceDto extends PartialType(CreateSpaceDto) { | ||
@ApiProperty({ | ||
example: 'new space', | ||
description: 'Updated space name', | ||
required: false, | ||
}) | ||
name?: string; | ||
|
||
@ApiProperty({ | ||
example: 'new image', | ||
description: 'Updated space icon', | ||
required: false, | ||
}) | ||
icon?: string; | ||
|
||
uuid?: string; | ||
} |
Oops, something went wrong.