https://github.com/efficientgoose/coderhack-crio
CoderHack Assignment Buildout for Crio
https://github.com/efficientgoose/coderhack-crio
Last synced: about 1 year ago
JSON representation
CoderHack Assignment Buildout for Crio
- Host: GitHub
- URL: https://github.com/efficientgoose/coderhack-crio
- Owner: efficientgoose
- Created: 2024-12-10T18:44:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T18:46:17.000Z (over 1 year ago)
- Last Synced: 2025-01-22T05:30:53.180Z (over 1 year ago)
- Language: Java
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
A RESTful API service built with Spring Boot to manage the leaderboard for a coding platform. The application uses MongoDB to persist user data.
## Features
- **User Registration**: Register a new user with a unique User ID and Username.
- **Update Score**: Update the score of a specific user.
- **Badge Awarding**: Award badges to users based on their scores.
- 1 <= Score < 30 -> Code Ninja
- 30 <= Score < 60 -> Code Champ
- 60 <= Score <= 100 -> Code Master
- **User Retrieval**: Retrieve a list of all registered users.
- **User Deletion**: Deregister a specific user from the contest.
## API Endpoints
- **GET /users** - Retrieve a list of all registered users
- **GET /users/{userId}** - Retrieve the details of a specific user
- **POST /users** - Register a new user to the contest
- **PUT /users/{userId}** - Update the score of a specific user
- **DELETE /users/{userId}** - Deregister a specific user from the contest
## API Testing
For testing the API endpoints, you can use the following [Postman Collection](https://www.postman.com/lunar-module-architect-99006294/ajinkya-s-workspace/collection/cf4cnzy/coderhacker-apis?action=share&creator=28399701)