Event Registration Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
1
Dependents
4
Entities
0
Integrations
Description
Business logic service handling event sign-up operations including self-registration and proxy registration. Manages optimistic UI updates with rollback on API error, enforces duplicate detection client-side before server call, and validates coordinator proxy permissions through local association relationships.
event-registration-service
Responsibilities
- Submit registration via POST /api/v1/events/{eventId}/registrations with authenticated user ID or proxy target ID
- Perform optimistic UI update and rollback on API failure
- Check duplicate registration client-side before submission
- Validate coordinator authority for proxy registration against local association membership
- Handle capacity limit errors and surface appropriate user feedback
Interfaces
registerForEvent(eventId, userId)
registerOnBehalf(eventId, targetUserId, coordinatorId)
checkExistingRegistration(eventId, userId)
cancelRegistration(eventId, registrationId)
getRegistrationStatus(eventId, userId)
validateProxyPermission(coordinatorId, targetUserId)
handleRegistrationError(error)
Relationships
Related Data Entities (4)
Data entities managed by this component