mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-07-18 19:41:01 -05:00
fix: add project and repo params to DeleteWebhook
This commit is contained in:
@ -2000,7 +2000,7 @@ Delete a webhook for the repository specified via the URL. <p> The authe
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
@param webhookId the existing webhook id
|
||||
@return */
|
||||
func (a *DefaultApiService) DeleteWebhook(webhookId int32) (*APIResponse, error) {
|
||||
func (a *DefaultApiService) DeleteWebhook(projectKey, repositorySlug string, webhookId int32) (*APIResponse, error) {
|
||||
var (
|
||||
localVarHTTPMethod = strings.ToUpper("Delete")
|
||||
localVarPostBody interface{}
|
||||
@ -2010,6 +2010,8 @@ func (a *DefaultApiService) DeleteWebhook(webhookId int32) (*APIResponse, error)
|
||||
|
||||
// create path and map variables
|
||||
localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}"
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", projectKey), -1)
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repositorySlug), -1)
|
||||
localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", fmt.Sprintf("%v", webhookId), -1)
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
|
Reference in New Issue
Block a user