🔧 chore(store.py): add status code 201 to the response of create_component endpoint for better HTTP semantics
This commit is contained in:
parent
3cb0231f2e
commit
2b9ac7c3ac
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def get_optional_user_store_api_key(
|
|||
return user.store_api_key
|
||||
|
||||
|
||||
@router.post("/components/", response_model=ComponentResponse)
|
||||
@router.post("/components/", response_model=ComponentResponse, status_code=201)
|
||||
def create_component(
|
||||
component: StoreComponentCreate,
|
||||
store_service: StoreService = Depends(get_store_service),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue