Skip to content

Commit

Permalink
Merge pull request #134 from tdameros/user-stats-progress-doc
Browse files Browse the repository at this point in the history
Add doc for '/user/{id}/progress/' endpoint
  • Loading branch information
tdameros authored Feb 1, 2024
2 parents bbd160e + 5f01c68 commit 2a032fb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions user_stats/doc/user-stats-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,39 @@
<details>
<summary><code>GET</code> <code><b>/user/{id}/progress/</b></code></summary>

### Request

#### Header (not implemented)

> | name | type | description | requirement |
> |-----------------|--------|---------------|-------------|
> | `Authorization` | String | Service token | Required |
#### Query

> | name | type | default | description | requirement |
> |--------|--------|---------|-------------|-------------|
> | `days` | int | 7 | Days span | Optional |
### Response

#### Body

> | name | type | description |
> |------------------|------|----------------------------|
> | `elo` | int | Elo progression |
> | `win_rate` | int | Win rate progression |
> | `matches_played` | int | Matches played progression |
#### Status code

> | status code | content-type | response |
> |-------------|--------------------|-------------------|
> | `200` | `application/json` | {...} |
> | `400` | `application/json` | {"errors": [...]} |
> | `404` | `application/json` | {"errors": [...]} |
> | `500` | `application/json` | {"errors": [...]} |
</details>

--------------------------------------------------------------------------------
Expand Down

0 comments on commit 2a032fb

Please sign in to comment.