notificationcontroller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

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) *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
@Param			Authorization	header		string				true	"Authentication header"	example(Bearer eyJhbGciOiJSUzI1NiIs)
@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
@Param			Authorization	header		string	true	"Authentication header"	example(Bearer eyJhbGciOiJSUzI1NiIs)
@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
@Param			Authorization	header		string					true	"Authentication header"	example(Bearer eyJhbGciOiJSUzI1NiIs)
@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]

Jump to

Keyboard shortcuts

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