Skip to content

Commit

Permalink
use 201 for rb creates (#259)
Browse files Browse the repository at this point in the history
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe authored May 21, 2024
1 parent 20d9e7d commit ad02a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/rolebindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *Router) roleBindingCreate(c echo.Context) error {
}

return c.JSON(
http.StatusOK,
http.StatusCreated,
roleBindingResponse{
ID: rb.ID,
ResourceID: rb.ResourceID,
Expand Down
2 changes: 1 addition & 1 deletion openapi-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ paths:
subject_ids:
- idntgrp-my-subgroup
responses:
"200":
"201":
description: root-super-user / create-role-binding-group
content:
application/json:
Expand Down

0 comments on commit ad02a3f

Please sign in to comment.