Please enable JavaScript.
Coggle requires JavaScript to display documents.
Cocktails - Project, Cocktails - cocktail/cocltails, Ingredients -…
Cocktails - Project
Cocktails - cocktail/cocltails
GET
GET /cocktails/{id}
POST
PATCH
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
DELETE
Permissions
Normal user - Not allow
Admin user - Allow
Anonymous - Not allow
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Permissions
Anonymous - Allow
Normal user - Allow
Admin user - Allow
Permissions
Anonymous - Allow
Normal user - Allow
Admin user - Allow
Ingredients - cocktail/ingredients/
GET
Permissions
Anonymous - Allow
Normal user - Allow
Admin user - Allow
GET /cocktails/{id}
POST
PATCH
DELETE
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Permissions
Anonymous - Allow
Normal user - Allow
Admin user - Allow
Customers - cocktail/customers
GET
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
GET /cocktails/customers/{id}
POST
PATCH
DELETE
Permissions
Normal user - Not allow
Admin user - Allow
Anonymous - Not allow
Permissions
Anonymous - Not allow
Normal user - Not allow (only his user)
Admin user - Allow
Permissions
Anonymous - Allow
Normal user - Allow
Admin user - Allow
ID
His own customer id
Permissions
Admin user - Allow
Normal user - Allow
Anonymous - Not allow
Other customer id
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Search ???????
Customers - cocktail/customers/ingredients
GET
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
PATCH
Permissions
Anonymous - Not allow
Normal user - Not allow (only his user)
Admin user - Allow
Request data
Add
Remove
Invalid operations
Invalid ingredients
Request data
Request user ingredients
Request other user ingredients
Non exists user
Customers - cocktail/customers/{id}/availablecocktails
GET
Permissions
Anonymous - Not allow
Normal user - Not allow
Admin user - Allow
Request data
Own customer id availablecocktails
Other customer id availablecocktails
Non exists customer id availablecocktails
Data validation
Empty
One cocktail in the list