A Spring Boot backend application that provides RESTful APIs for managing products and orders.
- User Authentication and Authorization (JWT-based)
- Product Management (CRUD operations)
- Order Processing
- Role-based Access Control (Admin/User)
POST /auth/register- Register a new userPOST /auth/authenticate- Login and receive JWT tokenGET /auth- Get current user details
GET /products- List all products (paginated)POST /products- Create a new product (Admin only)PATCH /products/{id}- Update a product (Admin only)DELETE /products/{id}- Delete a product (Admin only)
POST /orders- Place a new orderGET /orders- Get current user's orders