How diamsyah02/api-sf-partner works
This is a Synchronize Festival partner REST API with a small authenticated web portal. Partner requests pass signature validation before ticket or location operations; ticket ordering and order-status changes are handled through controller, service, repository, and model layers. The portal supports login, password changes, dashboard data, API documentation, and testing. The excerpts establish the main ticket and authentication calls; some route wiring is supported by the source index, while unsampled integrations and persistence details are not expanded.
Main entry points: Models Application models · HomeController.php Portal controller · TicketController.php Ticket API · AuthController.php Auth controller
Components 21
Entry and security
- Ticket routes
app/Config/Routes/Ticket.php - Location routes
app/Config/Routes/Location.php - Signature filter
app/Filters/AuthenticationSignature.php
Identity and portal
- Auth controller
app/Controllers/AuthController.php - Auth service
app/Services/AuthService.php - Portal controller
app/Controllers/HomeController.php - Dashboard service
app/Services/HomeService.php - Portal pages
app/Views
Partner API
- Ticket API
app/Controllers/api/TicketController.php - Ticket workflow
app/Services/TicketService.php - Location API
app/Controllers/api/LocationController.php - Location service
app/Services/LocationService.php
Data access
- Auth repository
app/Repositories/AuthRepository.php - Dashboard repository
app/Repositories/HomeRepository.php - Ticket repository
app/Repositories/TicketRepository.php - Location repository
app/Repositories/LocationRepository.php - Application models
app/Models - Configured database
app/Config/Database.php
Other components
- Partner client
- Portal user
- Email delivery
Connections 25
- Partner client → Signature filter: submits signed
app/Filters/AuthenticationSignature.php - Signature filter → Ticket API: guards requests
- Ticket routes → Ticket API: routes to
app/Config/Routes/Ticket.php - Location routes → Location API: routes to
app/Config/Routes/Location.php - Ticket API → Ticket workflow: calls
app/Controllers/api/TicketController.php - Ticket API → Ticket repository: constructs
app/Controllers/api/TicketController.php - Ticket workflow → Ticket repository: calls
app/Services/TicketService.php - Ticket repository → Application models: queries and writes
app/Repositories/TicketRepository.php - Location API → Location service: calls
app/Controllers/api/LocationController.php - Location API → Location repository: constructs
app/Controllers/api/LocationController.php - Location service → Location repository: delegates
app/Services/LocationService.php - Location repository → Application models: queries
app/Repositories/LocationRepository.php - Portal user → Auth controller: uses portal
app/Controllers/AuthController.php - Auth controller → Auth service: calls
app/Controllers/AuthController.php - Auth service → Auth repository: calls
app/Services/AuthService.php - Auth repository → Application models: reads and updates
app/Repositories/AuthRepository.php - Auth controller → Portal pages: renders login
app/Controllers/AuthController.php - Portal user → Portal controller: opens portal
app/Controllers/HomeController.php - Portal controller → Auth service: checks session
app/Controllers/HomeController.php - Portal controller → Dashboard service: requests data
app/Controllers/HomeController.php - Portal controller → Portal pages: renders pages
app/Controllers/HomeController.php - Dashboard service → Dashboard repository: delegates
app/Services/HomeService.php - Dashboard repository → Application models: queries
app/Repositories/HomeRepository.php - Application models → Configured database: persists through
- Ticket workflow → Email delivery: may notify