User Management
GET/api/v1/users
Retrieve a list of all users.
Requires authentication.
Response: Array of user objects.
User Creation
POST/api/v1/users
Create a new user account.
Requires authentication.
Request Body: JSON object with user details.
Specific User Data
GET/api/v1/users/{userId}
Retrieve details for a specific user.
Requires authentication.
URL Parameter: userId (string).
Update User
PUT/api/v1/users/{userId}
Update an existing user's information.
Requires authentication.
URL Parameter: userId (string).
Request Body: JSON object with updated user details.
Delete User
DELETE/api/v1/users/{userId}
Remove a user account.
Requires authentication.
URL Parameter: userId (string).
Product Catalog
GET/api/v1/products
Fetch all available products.
No authentication required.
Query Parameters: limit, offset, category.
Product Details
GET/api/v1/products/{productId}
Get detailed information about a specific product.
No authentication required.
URL Parameter: productId (string).
Place Order
POST/api/v1/orders
Submit a new order.
Requires authentication.
Request Body: JSON object with order details.
Order History
GET/api/v1/orders/history
View the current user's order history.
Requires authentication.