GetConnection @Summary get webhook connection detail @Description Get webhook connection detail @Tags plugins/webhook @Success 200 {object} WebhookConnectionResponse @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /plugins/webhook/con
(input *plugin.ApiResourceInput)
| 225 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 226 | // @Router /plugins/webhook/connections/{connectionId} [GET] |
| 227 | func GetConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 228 | connection := &models.WebhookConnection{} |
| 229 | err := connectionHelper.First(connection, input.Params) |
| 230 | return getConnection(err, connection) |
| 231 | } |
| 232 | |
| 233 | // GetConnectionByName |
| 234 | // @Summary get webhook connection detail by name |
nothing calls this directly
no test coverage detected