cloudapi/v1: Return status created in compose handler
This commit is contained in:
parent
12ca5325d6
commit
cda54ef926
2 changed files with 7 additions and 3 deletions
|
|
@ -384,7 +384,7 @@ func (h *apiHandlers) Compose(ctx echo.Context) error {
|
|||
var response ComposeResult
|
||||
response.Id = id.String()
|
||||
|
||||
return ctx.JSON(http.StatusOK, response)
|
||||
return ctx.JSON(http.StatusCreated, response)
|
||||
}
|
||||
|
||||
// ComposeStatus handles a /compose/{id} GET request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue