Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationController ¶
type NotificationController struct {
// contains filtered or unexported fields
}
func NewNotificationController ¶
func NewNotificationController(router gin.IRouter, notificationService port.NotificationService, auth gin.HandlerFunc) *NotificationController
func (*NotificationController) CreateNotification ¶
func (c *NotificationController) CreateNotification(gc *gin.Context)
CreateNotification
@Summary Create Notification
@Description Create a new notification
@Tags notification
@Accept json
@Produce json
@Security KeycloakAuth
@Param Notification body models.Notification true "notification to add"
@Success 201 {object} query.ResponseWithMetadata[models.Notification]
@Header all {string} api-version "API version"
@Router /notifications [post]
func (*NotificationController) GetOptions ¶
func (c *NotificationController) GetOptions(gc *gin.Context)
GetOptions
@Summary Notification filter options
@Description Get filter options for listing notifications
@Tags notification
@Produce json
@Security KeycloakAuth
@Success 200 {object} query.ResponseWithMetadata[[]query.FilterOption]
@Header all {string} api-version "API version"
@Router /notifications/options [get]
func (*NotificationController) ListNotifications ¶
func (c *NotificationController) ListNotifications(gc *gin.Context)
ListNotifications
@Summary List Notifications
@Description Returns a list of notifications matching the provided filters
@Tags notification
@Accept json
@Produce json
@Security KeycloakAuth
@Param MatchCriterias body query.ResultSelector true "filters, paging and sorting"
@Success 200 {object} query.ResponseListWithMetadata[models.Notification]
@Header all {string} api-version "API version"
@Router /notifications [put]
Click to show internal directories.
Click to hide internal directories.