You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/burger-api/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The Burger API provides the following endpoints:
34
34
| GET | /api/toppings/{id} | Retrieves a specific topping by its ID |
35
35
| GET | /api/toppings/categories | Returns a list of all topping categories |
36
36
| GET | /api/orders | Returns a list of all orders in the system |
37
-
| POST | /api/orders | Places a new order with burgers (requires `userId`) |
37
+
| POST | /api/orders | Places a new order with burgers (requires `userId`, optional `nickname`) |
38
38
| GET | /api/orders/{orderId} | Retrieves an order by its ID |
39
39
| DELETE | /api/orders/{orderId} | Cancels an order if it has not yet been started (status must be 'pending', requires `userId` as a query parameter (e.g., `?userId={userId}`) |
0 commit comments