notificationcontroller

package
v0.11.1-alpha5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotificationController added in v0.12.0

func AddNotificationController(router gin.IRouter, notificationService port.NotificationService, auth gin.HandlerFunc)

Types

type NotificationController

type NotificationController struct {
	// contains filtered or unexported fields
}

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]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL