-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add controller for retrieving a workspace
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { HttpStatus } from "@nestjs/common"; | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
|
||
export class HttpExceptionResponse { | ||
@ApiProperty({ enum: HttpStatus, description: "Status Code of HTTP Response" }) | ||
statusCode: HttpStatus; | ||
@ApiProperty({ type: String, description: "Description about the error" }) | ||
message: string; | ||
} |
12 changes: 12 additions & 0 deletions
12
backend/src/workspaces/types/find-workspace-response.type.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
|
||
export class FindWorkspaceResponse { | ||
@ApiProperty({ type: String, description: "ID of found workspace" }) | ||
id: string; | ||
@ApiProperty({ type: String, description: "Title of found workspace" }) | ||
title: string; | ||
@ApiProperty({ type: Date, description: "Created date of found workspace" }) | ||
createdAt: Date; | ||
@ApiProperty({ type: Date, description: "Updated date of found workspace" }) | ||
updatedAt: Date; | ||
} |
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