This is a RESTful API service for managing a leaderboard for a coding contest platform using Spring Boot and MongoDB. It supports user registration, score updates, and badge assignments.
- GET /users: Retrieve a list of all users sorted by score.
- GET /users/{userId}: Retrieve a specific user.
- POST /users: Register a new user.
- PUT /users/{userId}: Update a user's score.
- DELETE /users/{userId}: Deregister a user.
- Install MongoDB. or I have used Mongo Atlas (Cloud) Database and connected to Db using 'Connection String'.
- Clone this repository.
- Run
./gradlew bootrunto start the application. - Use the provided Postman collection to interact with the API.