forgot to push the doc

This commit is contained in:
Tzvetan Trave
2025-10-02 16:06:51 +02:00
parent 439e5a0acf
commit 7333dc2602

View File

@ -95,8 +95,8 @@ Input needed :
```json ```json
{ {
"opponent": "<the opponent's username>", "opponent": "<the opponent's username>",
"p1Score": <player 1's score>, "myScore": <my score>,
"p2Score": <player 2's score> "opponentScore": <the opponent's score>
} }
``` ```
@ -247,19 +247,22 @@ Used to get the match history of an user
Can return: Can return:
- 200 with response (list of matches results (between iStart and iEnd)) - 200 with response (list of matches results (between iStart and iEnd))
```json ```json
[ {
{ "matchHistory":
"score": [
{ {
"p1": "<the name of the p1>", "score":
"p2": "<the name of the p2>", {
"p1Score": "<the score of the p1>", "p1": "<the name of the p1>",
"p2Score": "<the score of the p2>" "p2": "<the name of the p2>",
"p1Score": "<the score of the p1>",
"p2Score": "<the score of the p2>"
},
"tx": "<the transcaction hash>"
}, },
"tx": "<the transcaction hash>" ...
}, ]
... }
]
``` ```
- 400 with response (if iStart/iEnd does not exist, or iEnd < iStart) - 400 with response (if iStart/iEnd does not exist, or iEnd < iStart)
```json ```json