Skip to content

Conversation

@taufik054-jpg
Copy link

@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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request appears to be intended to add PlantUML diagrams for student course enrollment use cases, including sequence diagrams and class diagrams. However, the PR contains only a PlantUML sequence diagram in the description without any actual file changes.

Changes:

  • No file changes detected in this pull request

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leestott leestott closed this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants