Skip to content

Commit

Permalink
feat: [AH-758]: Updated space_ref url
Browse files Browse the repository at this point in the history
  • Loading branch information
ritek01 committed Jan 3, 2025
1 parent 08f1fcb commit 66224fe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions harness/har/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
/registry/{registry_ref}:
/registry/{registry_ref}/+:
get:
tags:
- Registries
Expand Down Expand Up @@ -1717,7 +1717,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
/registry/{registry_ref}/client-setup-details:
/registry/{registry_ref}/+/client-setup-details:
get:
tags:
- Registries
Expand Down
2 changes: 1 addition & 1 deletion harness/har/api_artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ func (a *ArtifactsApiService) GetArtifactStatsForSpace(ctx context.Context, spac
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/+/artifact/stats"
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/artifact/stats"
localVarPath = strings.Replace(localVarPath, "{"+"space_ref"+"}", fmt.Sprintf("%v", spaceRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down
8 changes: 4 additions & 4 deletions harness/har/api_registries.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (a *RegistriesApiService) DeleteRegistry(ctx context.Context, registryRef s
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}"
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}/+"
localVarPath = strings.Replace(localVarPath, "{"+"registry_ref"+"}", fmt.Sprintf("%v", registryRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down Expand Up @@ -502,7 +502,7 @@ func (a *RegistriesApiService) GetClientSetupDetails(ctx context.Context, regist
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}/client-setup-details"
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}/+/client-setup-details"
localVarPath = strings.Replace(localVarPath, "{"+"registry_ref"+"}", fmt.Sprintf("%v", registryRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down Expand Up @@ -645,7 +645,7 @@ func (a *RegistriesApiService) GetRegistry(ctx context.Context, registryRef stri
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}"
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}/+"
localVarPath = strings.Replace(localVarPath, "{"+"registry_ref"+"}", fmt.Sprintf("%v", registryRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down Expand Up @@ -788,7 +788,7 @@ func (a *RegistriesApiService) ModifyRegistry(ctx context.Context, registryRef s
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}"
localVarPath := a.client.cfg.BasePath + "/registry/{registry_ref}/+"
localVarPath = strings.Replace(localVarPath, "{"+"registry_ref"+"}", fmt.Sprintf("%v", registryRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down
4 changes: 2 additions & 2 deletions harness/har/api_spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (a *SpacesApiService) GetAllHarnessArtifacts(ctx context.Context, spaceRef
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/+/artifacts"
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/artifacts"
localVarPath = strings.Replace(localVarPath, "{"+"space_ref"+"}", fmt.Sprintf("%v", spaceRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down Expand Up @@ -250,7 +250,7 @@ func (a *SpacesApiService) GetAllRegistries(ctx context.Context, spaceRef string
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/+/registries"
localVarPath := a.client.cfg.BasePath + "/spaces/{space_ref}/registries"
localVarPath = strings.Replace(localVarPath, "{"+"space_ref"+"}", fmt.Sprintf("%v", spaceRef), -1)

localVarHeaderParams := make(map[string]string)
Expand Down

0 comments on commit 66224fe

Please sign in to comment.