cloudapi: Fix href for metadata responses
Related: RHEL-60120
This commit is contained in:
parent
c0bf89b51f
commit
a394d1a498
1 changed files with 2 additions and 2 deletions
|
|
@ -626,7 +626,7 @@ func (h *apiHandlers) getComposeMetadataImpl(ctx echo.Context, id string) error
|
||||||
// job still running: empty response
|
// job still running: empty response
|
||||||
return ctx.JSON(200, ComposeMetadata{
|
return ctx.JSON(200, ComposeMetadata{
|
||||||
ObjectReference: ObjectReference{
|
ObjectReference: ObjectReference{
|
||||||
Href: fmt.Sprintf("/api/image-builder-composer/v2/%v/metadata", jobId),
|
Href: fmt.Sprintf("/api/image-builder-composer/v2/composes/%v/metadata", jobId),
|
||||||
Id: jobId.String(),
|
Id: jobId.String(),
|
||||||
Kind: "ComposeMetadata",
|
Kind: "ComposeMetadata",
|
||||||
},
|
},
|
||||||
|
|
@ -637,7 +637,7 @@ func (h *apiHandlers) getComposeMetadataImpl(ctx echo.Context, id string) error
|
||||||
// job canceled or failed, empty response
|
// job canceled or failed, empty response
|
||||||
return ctx.JSON(200, ComposeMetadata{
|
return ctx.JSON(200, ComposeMetadata{
|
||||||
ObjectReference: ObjectReference{
|
ObjectReference: ObjectReference{
|
||||||
Href: fmt.Sprintf("/api/image-builder-composer/v2/%v/metadata", jobId),
|
Href: fmt.Sprintf("/api/image-builder-composer/v2/composes/%v/metadata", jobId),
|
||||||
Id: jobId.String(),
|
Id: jobId.String(),
|
||||||
Kind: "ComposeMetadata",
|
Kind: "ComposeMetadata",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue