Skip to content

Commit

Permalink
Merge pull request #144 from tdameros/statistics-endpoint
Browse files Browse the repository at this point in the history
Prepend `statistics` in `user-stats` urls
  • Loading branch information
hferraud authored Feb 2, 2024
2 parents cb3dcf0 + c83ebd3 commit 6d3e670
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions doc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ this documentation details the different endpoints of each microservice.
> ### [/user/oauth/callback/{oauth-service}](../user_management/doc/User_management.md#oauthcallbackauth-service)
## User Stats
> ### [/user/{id}](../user_stats/doc/user-stats-documentation.md#userid)
> ### [/statistics/user/{id}](../user_stats/doc/user-stats-documentation.md#statisticsuserid)
> ### [/user/{id}/progress/](../user_stats/doc/user-stats-documentation.md#useridprogress)
> ### [/statistics/user/{id}/progress/](../user_stats/doc/user-stats-documentation.md#statisticsuseridprogress)
> ### [/user/{id}/graph/](../user_stats/doc/user-stats-documentation.md#useridgraph)
> ### [/statistics/user/{id}/graph/](../user_stats/doc/user-stats-documentation.md#statisticsuseridgraph)
> ### [/user/{id}/history/](../user_stats/doc/user-stats-documentation.md#useridhistory)
> ### [/statistics/user/{id}/history/](../user_stats/doc/user-stats-documentation.md#statisticsuseridhistory)
> ### [/match/](../user_stats/doc/user-stats-documentation.md#match)
> ### [/statistics/match/](../user_stats/doc/user-stats-documentation.md#statisticsmatch)
2 changes: 1 addition & 1 deletion tournament/src/tournament/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
USER_STATS_URL = 'http://user-stats-nginx/'

USER_MANAGEMENT_USER_ENDPOINT = USER_MANAGEMENT_URL + 'user/'
USER_STATS_USER_ENDPOINT = USER_STATS_URL + 'user/'
USER_STATS_USER_ENDPOINT = USER_STATS_URL + 'statistics/user/'

MIN_TOURNAMENT_NAME_LENGTH = 3
MAX_TOURNAMENT_NAME_LENGTH = 20
Expand Down
24 changes: 12 additions & 12 deletions user_stats/doc/user-stats-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

--------------------------------------------------------------------------------

## `/user/{id}/`
## `/statistics/user/{id}/`

### General user statistics

<details>
<summary><code>GET</code> <code><b>/user/{id}/</b></code></summary>
<summary><code>GET</code> <code><b>/statistics/user/{id}/</b></code></summary>

### Request

Expand Down Expand Up @@ -42,7 +42,7 @@
</details>

<details>
<summary><code>POST</code> <code><b>/user/{id}/</b></code></summary>
<summary><code>POST</code> <code><b>/statistics/user/{id}/</b></code></summary>

### Request

Expand Down Expand Up @@ -77,7 +77,7 @@
</details>

<details>
<summary><code>PATCH</code> <code><b>/user/{id}/</b></code></summary>
<summary><code>PATCH</code> <code><b>/statistics/user/{id}/</b></code></summary>

### Request

Expand Down Expand Up @@ -124,12 +124,12 @@

--------------------------------------------------------------------------------

## `/user/{id}/history/`
## `/statistics/user/{id}/history/`

### User match history

<details>
<summary><code>GET</code> <code><b>/user/{id}/history/</b></code></summary>
<summary><code>GET</code> <code><b>/statistics/user/{id}/history/</b></code></summary>

### Request

Expand Down Expand Up @@ -179,12 +179,12 @@

--------------------------------------------------------------------------------

## `/user/{id}/progress/`
## `/statistics/user/{id}/progress/`

### Weekly user progression

<details>
<summary><code>GET</code> <code><b>/user/{id}/progress/</b></code></summary>
<summary><code>GET</code> <code><b>/statistics/user/{id}/progress/</b></code></summary>

### Request

Expand Down Expand Up @@ -223,23 +223,23 @@

--------------------------------------------------------------------------------

## `/user/{id}/graph/`
## `/statistics/user/{id}/graph/`

### User graph data

<details>
<summary><code>GET</code> <code><b>/user/{id}/graph/</b></code></summary>
<summary><code>GET</code> <code><b>/statistics/user/{id}/graph/</b></code></summary>

</details>

--------------------------------------------------------------------------------

## `/match/`
## `/statistics/match/`

### General matches data

<details>
<summary><code>POST</code> <code><b>/match/</b></code></summary>
<summary><code>POST</code> <code><b>/statistics/match/</b></code></summary>

### Request

Expand Down
2 changes: 1 addition & 1 deletion user_stats/src/user_stats/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('api.urls')),
path('statistics/', include('api.urls')),
]

0 comments on commit 6d3e670

Please sign in to comment.