An API that tracks the games and the name and phone number of the people playing each game. Database used is MongoDB
Use the package manager npm to install the dependencies.
npm install
npm start
HTTP Method | Endpoint | Description |
---|---|---|
GET | /scoreboard | Retrieves all scoreboards. |
GET | /scoreboard/:id | Retrieves a specific scoreboard by ID. |
POST | /scoreboard | Creates a new scoreboard. |
PATCH | /scoreboard/:id | Updates a specific scoreboard by ID. |
DELETE | /scoreboard/:id | Deletes a specific scoreboard by ID. |
Retrieves all scoreboards.
Retrieves a specific scoreboard by ID.
Creates a new scoreboard.
Field | Data Type | Required | Description |
---|---|---|---|
game | string | yes | The name of the game. |
person | string | yes | The name of the player. |
Field | Data Type | Description |
---|---|---|
id | string | The ID of the created scoreboard. |
game | string | The name of the game. |
person | string | The name of the player. |
Updates a specific scoreboard by ID.
Field | Data Type | Required | Description |
---|---|---|---|
game | string | no | The updated name of the game. |
Field | Data Type | Description |
---|---|---|
id | string | The ID of the updated scoreboard. |
game | string | The updated name of the game. |
person | string | The name of the player. |
Deletes a specific scoreboard by ID.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.