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

Backend Dev Task

The document outlines requirements for creating REST APIs to manage cricket player data, including APIs for creating, updating, and deleting player details, getting a player by ID, getting players by average score or country, and getting a sorted list of players by average score, prioritizing older players with the same average. The APIs should be built with Java 11 and Spring Boot, use an in-memory HSQL database, and only allow admin users to perform CRUD operations.

Uploaded by

Anirudh Mohanty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views1 page

Backend Dev Task

The document outlines requirements for creating REST APIs to manage cricket player data, including APIs for creating, updating, and deleting player details, getting a player by ID, getting players by average score or country, and getting a sorted list of players by average score, prioritizing older players with the same average. The APIs should be built with Java 11 and Spring Boot, use an in-memory HSQL database, and only allow admin users to perform CRUD operations.

Uploaded by

Anirudh Mohanty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Ambula Cricket Stats

As a member of technical expertise for a cricket board you need write RESP APIs to find following details

CRUD OPERATION

1. Create an API to insert players detail.


2. Update Player details
3. Delete Player details

GET OPERATION

1. Get player detail by passing the player ID


2. Get the player list with an average score more than X. Where X is a number.
3. Get Player List By country.
4. Get a List of players in sorted order whose average scores are more than Y. where Y is number.
If two players have the same average, then the elder player will get the priority.

Player Detail

1. ID
2. Name
3. Date of birth
4. Match ID

Match Detail

1. ID
2. Score
3. Stadium

• Use Java 11+ and Spring-boot to create the Application.


• Use HSQL in memory DB.
• Use Gradle as a build tool.
• Only Admin users can do the CRUD operation.
• Write code with minimal code smell.
• Write Junit for the service class.

You might also like