Commit ad4e12d3 authored by Dennis Willers's avatar Dennis Willers 🏀

Merge remote-tracking branch 'origin/dev-greep' into dev-greep

parents 332b9d78 4c877e41
Pipeline #465 passed with stage
in 1 minute and 21 seconds
...@@ -14,9 +14,9 @@ If you just want to call the REST-Server you can do it with: `https://tm-voting. ...@@ -14,9 +14,9 @@ If you just want to call the REST-Server you can do it with: `https://tm-voting.
**GET /getVotes**<br> **GET /getVotes**<br>
Returns the current voting status for the current map.<br> Returns the current voting status for the current map.<br>
| Parameter | Description | Example | Parameter | Type | Description | Example
|------------ |------------------------------------- |----------------------------- |------------ |------- |------------------------------------- |-----------------------------
| map | The map UID to show the votes on it | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5` | map | String | The map UID to show the votes on it | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5`
Example response: Example response:
```json ```json
...@@ -31,10 +31,10 @@ Example response: ...@@ -31,10 +31,10 @@ Example response:
**GET /getPlayerVote**<br> **GET /getPlayerVote**<br>
Returns the current voting status of a player for the current map.<br> Returns the current voting status of a player for the current map.<br>
| Parameter | Description | Example | Parameter | Type | Description | Example
|------------ |------------------------------------- |----------------------------- |------------ |------- |------------------------------------- |-----------------------------
| map | The map UID to show the votes on it | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5` | map | String | The map UID to show the votes on it | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5`
| player | The player login that he voted on it | `Jtmn3kBnSSadky_mLNhp_A` | player | String | The player login that he voted on it | `Jtmn3kBnSSadky_mLNhp_A`
Example response: Example response:
```json ```json
...@@ -81,13 +81,12 @@ Example response: ...@@ -81,13 +81,12 @@ Example response:
**POST /setVote**<br> **POST /setVote**<br>
Writes the vote of a player to the respective map into the database table.<br /> Writes the vote of a player to the respective map into the database table.<br />
⚠ You need an Authorization header with a valid token in order to do requests for this. After getting your token, set your Authorization value to `Basic yourtokenhere`
| Parameter | Description | Example | Parameter | Type | Description | Example
|------------ |------------------------------------- |----------------------------- |------------ |------- |------------------------------------- |-----------------------------
| map | The map UID to vote | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5` | map | String | The map UID to vote | `OkNwgzSwDLZSWSRPsUKY7EA1Cg5`
| player | The player login that it will vote | `Jtmn3kBnSSadky_mLNhp_A` | player | String | The player login that it will vote | `Jtmn3kBnSSadky_mLNhp_A`
| vote | A number between 0 and 100 to define the vote | `56` | vote | Number | A number between 0 and 100 to define the vote | `56`
Example Response: Example Response:
```json ```json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment