Fix CreateRepository

This commit is contained in:
gfleury
2020-03-20 09:56:41 -03:00
parent 22f785dafa
commit 284a2dc210
2 changed files with 10 additions and 3 deletions

View File

@ -954,8 +954,14 @@ Create a new repository. Requires an existing project in which this repository w
@param projectKey the parent project key
@return */
func (a *DefaultApiService) CreateRepository(projectKey string) (*APIResponse, error) {
return a.CreateRepositoryWithOptions(projectKey, nil, []string{})
func (a *DefaultApiService) CreateRepository(projectKey string, repository Repository) (*APIResponse, error) {
localVarPostBody, err := json.Marshal(repository)
if err != nil {
return nil, err
}
return a.CreateRepositoryWithOptions(projectKey, localVarPostBody, []string{"application/json"})
}
func (a *DefaultApiService) CreateRepositoryWithOptions(projectKey string, localVarPostBody interface{}, localVarHTTPContentTypes []string) (*APIResponse, error) {