REST API to power a bowling alley's display
- Node (latest)
- MongoDB (latest)
- Download or fork
- run
npm install
- run
npm start
to begin - use a REST client for messages; I used both Postman and RestEasy
- user's name must me unique
- current roll must be a numerical value 0 - 10, "X" or "/" are not valid
- player can roll past the tenth frames, but only ten frames are counted in the score
- Route | /addUser
- Method | POST
- Body |
{ name: foo }
- Description | Creates a new user with score of zero
- Route | /score/:name
- Method | GET
- Parameter | name
- Description | Gets the given user's current score
- Returns | User's current score
- Route | /play/:name
- Method | POST
- Parameter | name
- Body |
{ currentRoll: 10}
- Description | Simulates a user's roll
- Route | /deleteUser/:name
- Method | DELETE
- Parameter | name
- Description | Removes user from list of users
- create automated testing framework
- create front-end for game play (possibly Angular)