webhook

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebHookController

type WebHookController struct {
	base.APIController
}

func (*WebHookController) Create

func (c *WebHookController) Create()

@Title Create @Description create WebHook @Param body body models.WebHook true "The WebHook content" @Success 200 return models.WebHook success @router / [post]

func (*WebHookController) Delete

func (c *WebHookController) Delete()

@Title Delete @Description delete the WebHook @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id [delete]

func (*WebHookController) Get

func (c *WebHookController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.WebHook success @router /:id([0-9]+) [get]

func (*WebHookController) GetHookEvents

func (c *WebHookController) GetHookEvents()

@Title Events @Description 获取所有关联事件对象 @router /events [get]

func (*WebHookController) List

func (c *WebHookController) List()

@Title List @Description 获取Webhook列表 @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.WebHook success @router / [get]

func (*WebHookController) Prepare

func (c *WebHookController) Prepare()

func (*WebHookController) URLMapping

func (c *WebHookController) URLMapping()

func (*WebHookController) Update

func (c *WebHookController) Update()

@Title Update @Description update the WebHook @Param id path int true "The id you want to update" @Param body body models.WebHook true "The body" @Success 200 models.WebHook success @router /:id [put]

Jump to

Keyboard shortcuts

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