-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3981 - Model SDPR API #4018
#3981 - Model SDPR API #4018
Conversation
andrepestana-aot
commented
Dec 3, 2024
•
edited
Loading
edited
- Created a new module for SIMS API from external access;
- Created a segregated swagger for external endpoints: http://localhost:3000/external/swagger ;
- Created Postman collection to authenticate and request a student by SIN (Teams folder);
- Documented on: https://github.com/bcgov/SIMS/wiki/Keycloak-Config#external-api-access-service-accounts
@Module({ | ||
imports: [AuthModule], | ||
controllers: [StudentExternalController], | ||
providers: [StudentService], |
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.
Open for discussion but we can keep those services at the API scope at first.
We can create some specific services for the external module, but I am not sure if we should start creating them in the integrations lib directly.
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.
@dheepak-aot can you please collaborate on this?
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 agree with @andrewsignori-aot, current scope of the services that serve the external APIs can be in API
scope.
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/utilities/src/config/config.models.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/utilities/src/config/config.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/auth/guards/authorized-parties.guard.ts
Outdated
Show resolved
Hide resolved
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.
Great work, please take a look at the comments.
Just a minor comment. Great work so far. Please take a look at the remaining comments. |
…ead of external azp; using StudentService from API;
|
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.
Great work, looks good 👍
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.
LGTM 👍 Thanks for making the changes