- Java 17
- Spring Framework Boot v3.x.x
- Spring Data Jpa
- H2 dataBase
- Maven
There are 2 REST points to perform following operations related to FootBall Teams Manager :
- POST Endpoint /teams to create teams with players or without player.
- GET Endpoint to retrieve teams. This end point support pagination and sortBy option
Clone the repository
git clone [email protected]:rahul6789sharma/manager.git
Setting up the workspace
After cloning the Repository it can be placed anywhere on your local hard drive.
For building and running the application you need:
cd <path_of_backend_repo>
mvn clean install
Ex: <MainPath>/test/
- Locally
java -jar manger-0.0.1-SNAPSHOT.jar
After starting applcation
you can use postman collection to test the applcation
tools/FootTeam Manager.postman_collection.json
Rest URL's Here are some url samples for pagination (with/without filter):
GET /team: using default page and size
GET /team: with pagination and shorting option
http://localhost:8080/teams?offset=0&pageSize=1&sortBy=name&dir=DESC
Post: /team: to create teams
Post : http://localhost:8080/teams
{
"name": "a",
"acronym":"acronym",
"players": [
{
"name": "p1"
},
{
"name": "p2"
}
]
}