@@ -18,6 +18,10 @@ headers {
|
||||
body:json {
|
||||
{
|
||||
"white": {"id": "p1", "displayName": "Alice"},
|
||||
"black": {"id": "p2", "displayName": "Bob"}
|
||||
"black": {"id": "p2", "displayName": "Bob"},
|
||||
"timeControl": {
|
||||
"limitSeconds": 300,
|
||||
"incrementSeconds": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,12 @@ meta {
|
||||
seq: 2
|
||||
}
|
||||
|
||||
http {
|
||||
method: GET
|
||||
get {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
gameId: j0nPtcjl
|
||||
}
|
||||
|
||||
@@ -1,19 +1,34 @@
|
||||
meta {
|
||||
name: Stream Game
|
||||
type: http
|
||||
type: ws
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/board/game/{{gameId}}/stream
|
||||
body: none
|
||||
ws {
|
||||
url: {{wsBaseUrl}}/api/board/game/{{gameId}}/ws
|
||||
body: ws
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/x-ndjson
|
||||
body:ws {
|
||||
name: move
|
||||
content: '''
|
||||
{
|
||||
"type": "MOVE",
|
||||
"uci": "b1c3"
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
body:ws {
|
||||
name: ping
|
||||
content: '''
|
||||
{
|
||||
"type": "PING"
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
gameId: tjOgyEcS
|
||||
gameId: j0nPtcjl
|
||||
}
|
||||
|
||||
@@ -19,6 +19,10 @@ body:json {
|
||||
{
|
||||
"fen": "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
|
||||
"white": {"id": "p1", "displayName": "Alice"},
|
||||
"black": {"id": "p2", "displayName": "Bob"}
|
||||
"black": {"id": "p2", "displayName": "Bob"},
|
||||
"timeControl": {
|
||||
"limitSeconds": 300,
|
||||
"incrementSeconds": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ post {
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
gameId: tjOgyEcS
|
||||
gameId: Yg200tOF
|
||||
}
|
||||
|
||||
@@ -15,5 +15,5 @@ params:query {
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
gameId: tjOgyEcS
|
||||
gameId: COy3oigz
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user