@Summary delete a gitee connection @Description Delete a gitee connection @Tags plugins/gitee @Success 200 {object} models.GiteeConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 409 {object} services.BlueprintProjectPairs "References exist to this connection" @Failure 500 {st
(input *plugin.ApiResourceInput)
| 168 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 169 | // @Router /plugins/gitee/connections/{connectionId} [DELETE] |
| 170 | func DeleteConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 171 | conn := &models.GiteeConnection{} |
| 172 | output, err := connectionHelper.Delete(conn, input) |
| 173 | if err != nil { |
| 174 | return output, err |
| 175 | } |
| 176 | output.Body = conn.Sanitize() |
| 177 | return output, nil |
| 178 | |
| 179 | } |
| 180 | |
| 181 | // @Summary get all gitee connections |
| 182 | // @Description Get all gitee connections |