This module contains articles about Axiom Telecom Handset Search APIs.
Design and implement a Java application following the requirements below.
• A fully running Java application. • Source code: sent through email, or uploaded to a Git repository. • Running instructions.
Java 8, Spring Boot (version 2.1.8.RELEASE),gson (2.8.5),JSON (20171018),Junit (4.12)
At this URL: https://a511e938-a640-4868-939e-6eef06127ca1.mock.pstmn.io/handsets/list, you will find a JSON file with a sample “Mobile handset” database. The data in this JSON is static, I.e it doesn’t get updated.
- Create a Spring Boot application exposing a search API (GET /mobile/search?) that will allow the caller to retrieve one or more mobile handset record based on the passed search criteria. The criteria can be any field in the handset data along with any value. Examples: • /search?priceEur=200. Will return 10 devices. • /search?sim=eSim. Will return 18 devices. • /search?announceDate=1999&price=200. Will return 2 devices.
- Consume the JSON API in the best way you see suitable.
- Create Unit Test cases as you see suitable.