-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Sequence diagrams (dua use cases) — PlantUML Use case A — Student enroll course (Daftar/Mendaftar mata kuliah)Class diagram (PlantUML) #715
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
base: main
Are you sure you want to change the base?
Conversation
|
@taufik054-jpg please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
@startuml
actor Student
participant "Web Frontend" as FE
participant "API Gateway" as AG
participant "Course Service" as CS
participant "Auth Service" as AS
participant "Enrollment Service" as ES
participant "DB (Enrollment)" as EDB
Student -> FE: klik "Enroll"
FE -> AG: POST /courses/{id}/enroll (token)
AG -> AS: verify token
AS --> AG: OK (userId)
AG -> ES: CreateEnrollment(userId, courseId)
ES -> EDB: INSERT enrollment
EDB --> ES: success
ES -> CS: NotifyEnrollment(userId, courseId) [async/event]
CS --> ES: ack
ES --> AG: 201 Created
AG --> FE: 201 Created
FE --> Student: tampilkan konfirmasi
@enduml