feat: Semaine 8
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
product = {
|
||||
"id": 42,
|
||||
"name": "Test Product",
|
||||
"price": 9.99,
|
||||
"stock": 100,
|
||||
"category": "Test Category"
|
||||
}
|
||||
|
||||
order_item = {
|
||||
"product_id": 42,
|
||||
"product_name": "Test Product",
|
||||
"unit_price": 9.99,
|
||||
"quantity": 2
|
||||
}
|
||||
|
||||
"""
|
||||
GET user-service OK
|
||||
GET catalog-service OK stock= 5
|
||||
PUT catalog-service #décrémente le stock
|
||||
|
||||
"""
|
||||
Reference in New Issue
Block a user