Skip to content

This is a project that will store the T20 World Cup participating countries, the teams and the players. In this project RESTful services are implemented using Spring Boot. For security, Spring Security and JWT authentication is implemented. PostgreSQL is used as the database.

Notifications You must be signed in to change notification settings

rafeed035/WC-Team-Info-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WC-Team-Info-Demo

This is a project that will store the T20 World Cup participating countries, the teams and the players. In this project RESTful services are implemented using Spring Boot. For security, Spring Security and JWT authentication is implemented. PostgreSQL is used as the database.

Spring boot version - 2.7.5 Java Version - jdk17

The Enities are:

  1. Country
  2. Team
  3. Player
  4. User

The endpoints are:

For Authentication:

  1. /auth/login ---> to login and get the access token

For Country:

  1. /api/v1/country/save ---> to save
  2. /api/v1/country/by-id ---> to get country by id
  3. /api/v1/country/by-name ---> to get country by name
  4. /api/v1/country/all ---> to get all countries
  5. /api/v1/country/update ---> to update a country
  6. /api/v1/country/delete ---> to delete a country

For Team:

  1. /api/v1/team/save ---> to save team
  2. /api/v1/team/by-id ---> to get team by id
  3. /api/v1/team/by-name ---> to get team by name
  4. /api/v1/team/by-country ---> to get team by country
  5. /api/v1/team/all ---> to get all teams
  6. /api/v1/team/update ---> to update a team
  7. /api/v1/team/delete ---> to delete a team

For Player:

  1. /api/v1/player/save ---> to save player
  2. /api/v1/player/by-id ---> to get player by id
  3. /api/v1/player/by-name ---> to get player by name
  4. /api/v1/player/by-team ---> to get player by team
  5. /api/v1/player/by-country ---> to get player by country
  6. /api/v1/player/by-score ---> to get player by score
  7. /api/v1/player/all ---> to get all players
  8. /api/v1/player/update ---> to update a player
  9. /api/v1/player/delete ---> to delete a player

For User:

  1. /api/v1/user/save ---> to save user
  2. /api/v1/user/by-id ---> to get user by id
  3. /api/v1/user/by-email ---> to get user by email
  4. /api/v1/user/all ---> to get all user
  5. /api/v1/user/update ---> to update a user
  6. /api/v1/user/delete ---> to delete a user

Only the endpoints "/auth/login" and "/api/v1/user/save" can be used without any access token. The rest other endpoints need access token as "Authorization" header in the following manner.

"Authorization: Bearer >token<"

About

This is a project that will store the T20 World Cup participating countries, the teams and the players. In this project RESTful services are implemented using Spring Boot. For security, Spring Security and JWT authentication is implemented. PostgreSQL is used as the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages