-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EW-1070 creating post endpoints to create a course #5385
base: main
Are you sure you want to change the base?
Conversation
apps/server/src/modules/common-cartridge/service/common-cartridge-import.service.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/common-cartridge/controller/dto/common-cartridge-import-body.params.ts
Outdated
Show resolved
Hide resolved
…dge-import.service.ts Co-authored-by: Fshmit <[email protected]>
...server/src/modules/common-cartridge/controller/utils/common-cartridge-file-validator.pipe.ts
Show resolved
Hide resolved
|
||
courseCommonCartridgeMetadata: CourseCommonCartridgeMetadataDto; | ||
public courseCommonCartridgeMetadata: CourseCommonCartridgeMetadataResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are not static, why did you change them to public? If they are to be directly read, may I suggest declaring it readonly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In JavaScript/Typescript, the default is 'public'. I just made it explicit.
export * from './course.query.params'; | ||
export * from './course.url.params'; | ||
export { CreateCourseBodyParams } from './create-course-body.params'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say use the barrel export in order to have the whole file follow the same export convention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✅
apps/server/src/modules/learnroom/service/common-cartridge-import.service.ts
Show resolved
Hide resolved
apps/server/src/modules/common-cartridge/service/common-cartridge-import.service.ts
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Description
This PR creates a POST endpoint for courses to create new courses on the API v3 route (NestJS). The
course-client
module was renamed tocourses-client
and was moved to theinfra
folder. The NPM scriptgenerate-client:courses-api
was created to simplify the generation of the client from an Open API specification.Links to Tickets or other pull requests
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.