🔧 chore(store.py): add status code 201 to the response of create_component endpoint for better HTTP semantics

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-23 23:07:11 -03:00
commit 2b9ac7c3ac

View file

@ -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),