bring server files into project.
This commit is contained in:
41
tests/requests.http
Normal file
41
tests/requests.http
Normal file
@ -0,0 +1,41 @@
|
||||
GET http://localhost:5173/api
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:5173/api/games
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:5173/api/games
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:5173/api/games/de4cdb8c-0346-4ac6-a7a8-b4135b2d79e3
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
|
||||
PUT http://localhost:5173/api/games/de4cdb8c-0346-4ac6-a7a8-b4135b2d79e3
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"state": {},
|
||||
"isStarted": true,
|
||||
"players": ["2", "45", "10"]
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:5173/api/games/de4cdb8c-0346-4ac6-a7a8-b4135b2d79e3/turns
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"kind": "Roll",
|
||||
"player": 2,
|
||||
"value": 4
|
||||
}
|
Reference in New Issue
Block a user