0% found this document useful (0 votes)
2 views1 page

Interview Questions and Project

The project aims to develop a simple e-commerce product catalog service with RESTful APIs for product management. Key requirements include defining a product entity with attributes like id, name, description, price, and category, as well as implementing various API endpoints for creating, retrieving, updating, and deleting products. Additional features include input validation, error handling, JWT authentication, and optional pagination and sorting, with a MySQL database for storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Interview Questions and Project

The project aims to develop a simple e-commerce product catalog service with RESTful APIs for product management. Key requirements include defining a product entity with attributes like id, name, description, price, and category, as well as implementing various API endpoints for creating, retrieving, updating, and deleting products. Additional features include input validation, error handling, JWT authentication, and optional pagination and sorting, with a MySQL database for storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Sample Test Project: E-commerce Product Catalog

Objective:
The goal of this project is to create a simple e-commerce product catalog service. The service
should expose RESTful APIs for managing and querying products.
Project Requirements:
1. Product Entity:
o id: Long (Auto-generated ID)

o name: String (Product name, required, must be unique)

o description: String (Detailed product description)

o price: Double (Product price, required)

o category: String (Product category, required)

o createdAt: Date (Automatically set to the current date and time)

o updatedAt: Date (Automatically updated whenever the product is modified)

2. API Endpoints:
o Create Product: POST /api/products

o Get Product by ID: GET /api/products/{id}

o Get All Products: GET /api/products

o Update Product: PUT /api/products/{id}

o Delete Product: DELETE /api/products/{id}

o Get Products by Category: GET /api/products/category/{category}

3. Additional Requirements:
o Implement validation for the input fields.

o Use appropriate error handling for invalid input or operations (e.g., product not
found).
o Implement the JWT authentication to the API.

o Use a MySQL database.

o Optional: Implement pagination and sorting for the Get All Products endpoint.

You might also like