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
/users,GET,Get all users data,"None","{""status"":200, ""data"":[]}"
3
+
/users/{id},GET,Get user data by ID,"{""id"": int}","{""status"":200, ""data"":{""id"":1, ""name"":""John Doe"", ""age"":30, ""email"":""john.doe@example.com""}}"
4
+
/users/{id},PUT,Update user data by ID,"{""id"": int, ""name"": string, ""age"": int, ""email"": string}","{""status"":200, ""message"":""User data updated successfully""}"
5
+
/users/{id},DELETE,Delete user data by ID,"{""id"": int}","{""status"":200, ""message"":""User data deleted successfully""}"
6
+
/products,GET,Get all products data,"None","{""status"":200, ""data"":[]}"
7
+
/products/{id},GET,Get product data by ID,"{""id"": int}","{""status"":200, ""data"":{""id"":1, ""name"":""Product A"", ""price"":50.00, ""category"":""Electronics""}}"
8
+
/products/{id},PUT,Update product data by ID,"{""id"": int, ""name"": string, ""price"": float, ""category"": string}","{""status"":200, ""message"":""Product data updated successfully""}"
9
+
/products/{id},DELETE,Delete product data by ID,"{""id"": int}","{""status"":200, ""message"":""Product data deleted successfully""}"
10
+
/orders,GET,Get all orders data,"None","{""status"":200, ""data"":[]}"
11
+
/orders/{id},GET,Get order data by ID,"{""id"": int}","{""status"":200, ""data"":{""id"":1, ""product_id"":1, ""quantity"":2, ""total_price"":100.00}}"
12
+
/orders/{id},PUT,Update order data by ID,"{""id"": int, ""product_id"": int, ""quantity"": int, ""total_price"": float}","{""status"":200, ""message"":""Order data updated successfully""}"
13
+
/orders/{id},DELETE,Delete order data by ID,"{""id"": int}","{""status"":200, ""message"":""Order data deleted successfully""}"
0 commit comments