-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* EW-994 provided a get course by id API
- Loading branch information
Showing
6 changed files
with
104 additions
and
0 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
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
32 changes: 32 additions & 0 deletions
32
apps/server/src/modules/learnroom/controller/dto/course-cc-metadata.response.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,32 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { EntityId } from '@shared/domain/types'; | ||
|
||
export class CourseCommonCartridgeMetadataResponse { | ||
constructor(id: EntityId, title: string, copyrightOwners: string[], creationDate?: Date) { | ||
this.id = id; | ||
this.title = title; | ||
this.creationDate = creationDate; | ||
this.copyRightOwners = copyrightOwners; | ||
} | ||
|
||
@ApiProperty({ | ||
description: 'The id of the course', | ||
pattern: '[a-f0-9]{24}', | ||
}) | ||
id: string; | ||
|
||
@ApiProperty({ | ||
description: 'Title of the course', | ||
}) | ||
title: string; | ||
|
||
@ApiProperty({ | ||
description: 'Creation date of the course', | ||
}) | ||
creationDate?: Date; | ||
|
||
@ApiProperty({ | ||
description: 'Copy right owners of the course', | ||
}) | ||
copyRightOwners: 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
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