Controllers

Parent namespace: Backend

Namespaces

TypeDescription
ActivitiesControllerController for managing activities within the system. The ActivitiesController provides endpoints for creating, retrieving, updating, and deleting activities, as well as handling related operations such as uploading posters and exporting enrollments. This controller is designed to ensure proper authorization for all operations, allowing only authorized users to access and modify activity data while providing appropriate error handling for various scenarios. The ActivitiesController interacts with the IActivityService to perform the necessary business logic and data manipulation, ensuring a clean separation of concerns and maintainable code structure for managing activities effectively within the application.
AnnouncementsControllerController for managing announcements within the system. The AnnouncementsController provides endpoints for creating, retrieving, updating, and deleting announcements, as well as handling related operations such as partial updates using JSON Patch. This controller is designed to ensure proper authorization for all operations, allowing only authorized users to access and modify announcement data while providing appropriate error handling for various scenarios. The AnnouncementsController interacts with the IAnnouncementService to perform the necessary business logic and data manipulation, ensuring a clean separation of concerns and maintainable code structure for managing announcements effectively within the application.
CalendarsControllerController for publishing personal iCalendar feeds of activity enrollments. The CalendarsController exposes the feed itself, which is fetched anonymously by calendar applications, together with endpoints that let a member retrieve and regenerate their own subscription URL. Because calendar applications cannot authenticate, the feed endpoint is deliberately anonymous and is protected solely by the unguessable identifier in its URL, which acts as a bearer secret. The controller interacts with the ICalendarService to perform the necessary business logic and data manipulation, ensuring a clean separation of concerns and maintainable code structure for publishing calendar feeds effectively within the application.
EnrollmentsControllerController for managing enrollments within the system. The EnrollmentsController provides endpoints for creating, retrieving, updating, and deleting enrollments, as well as handling related operations such as partial updates using JSON Patch. This controller is designed to ensure proper authorization for all operations, allowing only authorized users to access and modify enrollment data while providing appropriate error handling for various scenarios. The EnrollmentsController interacts with the IEnrollmentService to perform the necessary business logic and data manipulation, ensuring a clean separation of concerns and maintainable code structure for managing enrollments effectively within the application.
ExternalLinksControllerController for managing external links and their icons.
GroupMembershipsControllerController for managing group memberships within the system. The GroupMembershipsController provides endpoints for creating, retrieving, updating, and deleting group memberships, as well as handling related operations such as partial updates using JSON Patch. This controller is designed to ensure proper authorization for all operations, allowing only authorized users to access and modify group membership data while providing appropriate error handling for various scenarios. The GroupMembershipsController interacts with the IGroupMembershipService to perform the necessary business logic and data manipulation, ensuring a clean separation of concerns and maintainable code structure for managing group memberships effectively within the application.
GroupsControllerController for managing organizational groups within the system. The GroupsController provides a comprehensive set of endpoints for handling the lifecycle of groups, including creation, retrieval, full and partial updates, and deletion. It also manages group-specific assets such as group profile pictures. This controller is designed to enforce strict ownership and authorization rules, ensuring that only authorized users can modify group data. By interacting with the IGroupService, the controller maintains a clean separation between the API layer and the business logic required to manage group structures and their associated metadata effectively.
MailinglistsController for retrieving and curating mailing lists. Which lists exist and who's subscribed is managed entirely by the configured mail subscription provider (e.g. Mailchimp); this controller exposes a filtered, read-only view of what's available there, plus board-only endpoints for choosing which provider lists Tavern curates and in which context they're shown.
MailsControllerController for managing email communications within the system. The MailsController provides centralized endpoints for sending various types of emails, including general correspondence and activity-specific notifications. This controller ensures that all mailing operations are authenticated and authorized, leveraging the AbstractMailService to handle the underlying delivery logic and template processing. By encapsulating mail operations here, the application maintains a consistent approach to user communication while enforcing security policies and providing robust error handling for email delivery scenarios.
MembersControllerController for managing system members and their profiles. The MembersController provides a comprehensive suite of endpoints for user lifecycle management, including registration, profile retrieval, data updates, and account deletion. It also handles profile picture management and integrates with identity provider webhooks to ensure data synchronization. This controller enforces security through role-based or ownership-based authorization while allowing specific public actions like self-registration. By coordinating between the IMemberService and specialized services like the AuthOutboxWorker, it ensures that member data remains consistent across the internal database and external identity providers.
PaymentsControllerController for managing financial transactions and payment records within the system. The PaymentsController serves as a centralized hub for processing membership fees, activity enrollments, and maintaining payment balances. It integrates with external payment providers through secure webhooks and provides administrative tools for auditing, such as exporting transaction data to CSV. This controller ensures that all financial operations are strictly authorized, allowing users to view their own payment history while granting administrative access for oversight and reporting, ultimately ensuring a transparent and manageable financial ecosystem for the organization.
ProfilePictureControllerController for managing profile picture assets across the system. The ProfilePictureController provides dedicated endpoints for the retrieval and uploading of user avatars. It serves as a specialized handler for file-based operations, ensuring that image data is correctly processed, stored, and served with the appropriate MIME types. This controller integrates with the IProfilePictureService to abstract the underlying storage mechanism—whether local or cloud-based—while enforcing authorization rules to ensure that only authenticated users can access or modify personal profile imagery.
RegisterReasonsControllerController for managing register reasons and their icons.
RegisterSlidesControllerController for managing registration page slideshow images.
RegistrationDocumentsControllerController for managing registration documents (terms, rules, privacy statements) that members agree to upon registering.
RoleAliasesControllerController for managing role aliases within the system. The RoleAliasesController provides a set of endpoints for defining and managing alternative names for system roles, allowing for greater flexibility and user-friendly nomenclature across the application. This controller handles the full CRUD lifecycle for role aliases, ensuring that changes to role naming conventions are performed securely by authorized personnel. By interacting with the IRoleAliasService, the controller maintains a mapping between internal system roles and their public-facing aliases, facilitating a more intuitive experience for end-users while preserving the integrity of the underlying authorization logic.
RolesControllerController for managing system roles and their associated permissions within the application. The RolesController provides a robust set of endpoints for the creation, retrieval, modification, and deletion of roles, which serve as the foundation for the system's access control and organizational structure. By coordinating with the IRoleService, this controller ensures that role definitions are managed securely and consistently, allowing administrators to define the levels of authority and responsibilities assigned to different users. Proper authorization is enforced across all endpoints to maintain the integrity of the system's security model, preventing unauthorized modifications to the foundational role data.
SettingsController for managing global application settings and system-wide configurations. The Settings controller provides a suite of administrative endpoints for viewing, defining, and modifying key-value pairs that govern the behavior of the application. This centralized configuration management allows authorized administrators to adjust system parameters—such as feature toggles, business rules, or integration endpoints—without requiring code changes. The controller ensures strict authorization for all operations, utilizing the ISettingsService to handle the underlying persistence and validation logic while maintaining a secure and audit-ready configuration layer.
SpecificationAnswersController for managing specification answers within the system. The SpecificationAnswers controller provides endpoints for handling user-submitted responses to specific requirements or questions defined within the system's specification models. This controller is primarily focused on enabling flexible updates to existing answers, ensuring that data integrity and business rules are maintained during the modification process. By leveraging the ISpecificationAnswerService, the controller facilitates a secure way for users to provide or adjust information while enforcing strict authorization policies to ensure that only the rightful owners or authorized personnel can modify sensitive specification data.
StudiesControllerController for managing academic studies and curricula within the system. The StudiesController provides a centralized interface for defining, retrieving, and updating study programs, which are essential for categorizing members and academic activities. This controller supports the full range of CRUD operations, allowing authorized administrators to manage the academic catalog while providing public access for browsing available studies. By coordinating with the IStudyService, the controller ensures that study data is kept consistent and secure, enforcing authorization rules to prevent unauthorized modification of the educational framework while facilitating ease of access for the general user base.
StudyEnrollmentsControllerController for managing the association between members and their specific academic studies. The StudyEnrollmentsController provides a set of endpoints to track when and how users are enrolled in various programs, maintaining a historical and current record of their academic status. This controller is crucial for verifying eligibility for student-specific activities and benefits within the system. It enforces strict authorization to ensure that enrollment data—which often contains sensitive academic timelines—is only accessible to the account owner or authorized administrators. By utilizing the IStudyEnrollmentService, the controller abstracts the complex logic of managing overlapping enrollments and status transitions.