1
0
mirror of https://github.com/gfleury/go-bitbucket-v1.git synced 2025-04-09 11:08:04 -05:00

Fix endpoint path

This commit is contained in:
Vittorio Curcio 2018-12-12 23:06:45 +01:00
parent 23c70d2142
commit dc293425f5

@ -3865,7 +3865,7 @@ func (a *DefaultApiService) getContentWithPath(projectKey string, repositorySlug
)
// create path and map variables
localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse{path}"
localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse"
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", projectKey), -1)
localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repositorySlug), -1)
if path != "" {