Documentation
¶
Index ¶
- type TeamsController
- func (tc *TeamsController) CreateTeamsChannel(c *gin.Context)
- func (tc *TeamsController) DeleteTeamsChannel(c *gin.Context)
- func (tc *TeamsController) ListTeamsChannels(c *gin.Context)
- func (tc *TeamsController) SendTeamsTestMessage(c *gin.Context)
- func (tc *TeamsController) UpdateTeamsChannel(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamsController ¶
type TeamsController struct {
// contains filtered or unexported fields
}
func NewTeamsController ¶
func NewTeamsController( router gin.IRouter, notificationChannelServicer notificationchannelservice.NotificationChannelService, teamsChannelService notificationchannelservice.TeamsChannelService, auth gin.HandlerFunc, registry *errmap.Registry, ) *TeamsController
func (*TeamsController) CreateTeamsChannel ¶
func (tc *TeamsController) CreateTeamsChannel(c *gin.Context)
CreateTeamsChannel
@Summary Create Teams Channel
@Description Create a new teams notification channel
@Tags teams-channel
@Accept json
@Produce json
@Security KeycloakAuth
@Param TeamsChannel body teamsdto.TeamsNotificationChannelRequest true "Teams channel to add"
@Success 201 {object} teamsdto.TeamsNotificationChannelRequest
@Failure 400 {object} map[string]string
@Failure 500 {object} map[string]string
@Router /notification-channel/teams [post]
func (*TeamsController) DeleteTeamsChannel ¶
func (tc *TeamsController) DeleteTeamsChannel(c *gin.Context)
DeleteTeamsChannel
@Summary Delete Teams Channel
@Description Delete a teams notification channel
@Tags teams-channel
@Security KeycloakAuth
@Param id path string true "Teams channel ID"
@Success 204 "Deleted successfully"
@Failure 500 {object} map[string]string
@Failure 404 {object} map[string]string
@Router /notification-channel/teams/{id} [delete]
func (*TeamsController) ListTeamsChannels ¶
func (tc *TeamsController) ListTeamsChannels(c *gin.Context)
ListTeamsChannels
@Summary List Teams Channels
@Description List teams notification channels by type
@Tags teams-channel
@Produce json
@Security KeycloakAuth
@Param type query string false "Channel type"
@Success 200 {array} teamsdto.TeamsNotificationChannelRequest
@Failure 500 {object} map[string]string
@Router /notification-channel/teams [get]
func (*TeamsController) SendTeamsTestMessage ¶
func (tc *TeamsController) SendTeamsTestMessage(c *gin.Context)
SendTeamsTestMessage
@Summary Check Teams server
@Description Check if a Teams server is able to send a test message
@Tags teams-channel
@Accept json
@Produce json
@Security KeycloakAuth
@Param id path string true "Teams channel ID"
@Success 204 "Teams server test message sent successfully"
@Failure 400 {object} map[string]string
@Router /notification-channel/teams/check [post]
func (*TeamsController) UpdateTeamsChannel ¶
func (tc *TeamsController) UpdateTeamsChannel(c *gin.Context)
UpdateTeamsChannel
@Summary Update Teams Channel
@Description Update an existing teams notification channel
@Tags teams-channel
@Accept json
@Produce json
@Security KeycloakAuth
@Param id path string true "Teams channel ID"
@Param TeamsChannel body teamsdto.TeamsNotificationChannelRequest true "Teams channel to update"
@Success 200 {object} teamsdto.TeamsNotificationChannelRequest
@Failure 400 {object} map[string]string
@Failure 404 {object} map[string]string
@Failure 500 {object} map[string]string
@Router /notification-channel/teams/{id} [put]
Click to show internal directories.
Click to hide internal directories.