@Summary delete a feishu connection @Description Delete a feishu connection @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 409 {object} services.BlueprintProjectPairs "References exist to this connection" @Failure 500
(input *plugin.ApiResourceInput)
| 151 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 152 | // @Router /plugins/feishu/connections/{connectionId} [DELETE] |
| 153 | func DeleteConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 154 | conn := &models.FeishuConnection{} |
| 155 | output, err := connectionHelper.Delete(conn, input) |
| 156 | if err != nil { |
| 157 | return output, err |
| 158 | } |
| 159 | output.Body = conn.Sanitize() |
| 160 | return output, nil |
| 161 | |
| 162 | } |
| 163 | |
| 164 | // @Summary get all feishu connections |
| 165 | // @Description Get all feishu connections |