0% found this document useful (0 votes)
2 views2 pages

Coding Test - Inventory Search API - Java

The document outlines the requirements for building a Search API for an Inventory Management System, focusing on a backend implementation in Java. It specifies the need for a REST API that returns inventory items based on optional filter criteria, along with expectations for schema design, parameter validation, and error handling. Additionally, it mentions optional features such as unit tests, pagination, and the use of Docker, while detailing the tech stack to be used, including Java 17 and a choice of database.

Uploaded by

mysweetnest
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 views2 pages

Coding Test - Inventory Search API - Java

The document outlines the requirements for building a Search API for an Inventory Management System, focusing on a backend implementation in Java. It specifies the need for a REST API that returns inventory items based on optional filter criteria, along with expectations for schema design, parameter validation, and error handling. Additionally, it mentions optional features such as unit tests, pagination, and the use of Docker, while detailing the tech stack to be used, including Java 17 and a choice of database.

Uploaded by

mysweetnest
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

Inventory Search –

Backend
Java coding Use case

Problem Statement
Build a Search API for Inventory search Management System

1. Backend Requirements
Create an API which will return the Inventory matching the filter criteria provided by the user. All
the parameters to Search API are optional. Filter parameters will be part of AND conditions. Return
values should the inventories that match the search criteria.
1.1 Entity Model:
Inventory
 ID
 Name
 Category
 Subcategory
 Manufacturing Date
 Expiry Date
 Specification
 price
 stock
 Model
 Seller
 Location
 ……. Additional columns as you can assume

1.2 Required APIs


 Search API to get all Inventory matching the filter

1.3 Expectations
 Create a REST API
 Open API standard YAML
 Working code and demonstration

Inventory & Order Management


 Use proper schema design
 Proper validation of search parameters
 Proper error handling
 Clean folder structure
 ReadMe file explaining the design approach, assumption and considerations

2. Bonus (optional)
 Unit tests
 Pagination
 Docker YML file

3. General Information
3.1 Tech Stack
 Java 17 with Spring or any framework of your choice
 Database: MongoDB or MySQL or H2 any Relational

Inventory & Order Management

You might also like