Dice Roll allow user to create or join to room. In these rooms users can roll virtual dices. One roll may contain different number of dice combinations e.g. d20 (20-sided dice) + d10 (10-sided dice).
Check a live Demo here https://dice-roll-web.herokuapp.com/
Create new account or use this:
- Username: test
- Password: password
These endpoints is available for everyone.
- Show room list:
GET /api/rooms
These endpoints is available for users who are autheticated. To authenticate user need to include valid Token in header of the request. A Token is generated by Login and Register endpoint.
- Show info:
GET /api/users
- Show already joined rooms:
GET /api/users/myRooms
- Change password:
PUT /api/users
- Create room:
POST /api/rooms
- Show room info:
GET /api/rooms/:room_id
- Join room:
POST /api/rooms/:room_id
- Show room rolls:
GET /api/rooms/:room_id/rolls
- Create roll:
POST /api/rooms/:room_id/rolls