Kheys
410
modifications
(→Endpoints « formels » : Suppression des endpoints inexistants) |
(→Endpoints « formels » : Formatage des ''bodies'') |
||
Ligne 150 : | Ligne 150 : | ||
|addComment | |addComment | ||
|contents/{contentID}/comments | |contents/{contentID}/comments | ||
|'''contentID''' | |'''contentID''' int | ||
|<pre>"content": "commentaire"</pre> | |<pre>"content": "commentaire"</pre> | ||
|- | |- | ||
|addCommentVote | |addCommentVote | ||
|contents/{contentID}/comments/{commentID}/vote | |contents/{contentID}/comments/{commentID}/vote | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
|<pre>"type": 1 ou -1</pre> | |<pre>"type": 1 ou -1</pre> | ||
|- | |- | ||
|addReply | |addReply | ||
|contents/{contentID}/comments/{commentID}/answers | |contents/{contentID}/comments/{commentID}/answers | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
|"content": "Super jeu !" | |<pre>"content": "Super jeu !"</pre> | ||
|- | |- | ||
|addReview | |addReview | ||
|games/{id}/{machine}/reviews/users | |games/{id}/{machine}/reviews/users | ||
|'''id''' int | |'''id''' int | ||
'''machine''' | '''machine''' int | ||
|<pre>"content": "Super jeu !", | |<pre>"content": "Super jeu !", | ||
"mark": 4, | "mark": 4, | ||
Ligne 178 : | Ligne 178 : | ||
|accounts/login | |accounts/login | ||
| | | | ||
|"alias": "pseudo", | |<pre>"alias": "pseudo", | ||
"password": "mot_de_passe" | "password": "mot_de_passe"</pre> | ||
|- | |- | ||
|logout | |logout | ||
Ligne 214 : | Ligne 214 : | ||
|reportAccount | |reportAccount | ||
|accounts/{accountId}/report | |accounts/{accountId}/report | ||
|'''accountId''' | |'''accountId''' int | ||
|"reason": 1, | |<pre>"reason": 1, | ||
"message": "Raison" | "message": "Raison"</pre> | ||
|- | |- | ||
| reportComment | | reportComment | ||
|contents/{contentID}/comments/{commentID}/report | |contents/{contentID}/comments/{commentID}/report | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
|<pre>"reason": 1, | |<pre>"reason": 1, | ||
"message": "Raison", | "message": "Raison", | ||
Ligne 235 : | Ligne 235 : | ||
|games/{id}/{machine}/reviews/users/{reviewId}/report | |games/{id}/{machine}/reviews/users/{reviewId}/report | ||
|'''id''' int | |'''id''' int | ||
'''machine''' | '''machine''' int | ||
'''reviewId''' int | '''reviewId''' int | ||
|<pre>"reason": 1, | |<pre>"reason": 1, | ||
Ligne 247 : | Ligne 247 : | ||
|restoreComment | |restoreComment | ||
|contents/{contentID}/comments/{commentID} | |contents/{contentID}/comments/{commentID} | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
|"content" : "comment" | |<pre>"content" : "comment"</pre> | ||
|- | |- | ||
|validateAccount | |validateAccount | ||
Ligne 270 : | Ligne 270 : | ||
|accounts/me/favorites/forums | |accounts/me/favorites/forums | ||
| | | | ||
| | |<code>"forums" : [50,51,52] # ID des forums</code> | ||
|- | |- | ||
|addFavoritesGames | |addFavoritesGames | ||
|accounts/me/favorites/games | |accounts/me/favorites/games | ||
| | | | ||
| | |<code>"games" : [{"id":"ID du jeu", "machine":"ID de la machine"}]</code> | ||
|- | |- | ||
|addFavoritesTopics | |addFavoritesTopics | ||
|accounts/me/favorites/topics | |accounts/me/favorites/topics | ||
| | | | ||
| | |<code>"topics" : [74229153, 74229154] # ID des forums</code> | ||
|} | |} | ||
Ci-dessous figurent les requêtes ''GET'', qui se comportent comme des recherches selon les filtres passés en ''queries''. | Ci-dessous figurent les requêtes ''GET'', qui se comportent comme des recherches selon les filtres passés en ''queries''. | ||
Ligne 663 : | Ligne 663 : | ||
|accounts/me/profile/description | |accounts/me/profile/description | ||
| | | | ||
|"description": "Ma description" | |<pre>"description": "Ma description"</pre> | ||
|- | |- | ||
|saveExcludedMachines | |saveExcludedMachines | ||
|accounts/me/profile/excluded-machines | |accounts/me/profile/excluded-machines | ||
| | | | ||
|"machines" : [1, 2, 3, 4] // id des machines | |<pre>"machines" : [1, 2, 3, 4] // id des machines</pre> | ||
|- | |- | ||
|saveMachines | |saveMachines | ||
|accounts/me/profile/machines | |accounts/me/profile/machines | ||
| | | | ||
|"machines" : [1, 2, 3, 4] // id des machines | |<pre>"machines" : [1, 2, 3, 4] // id des machines</pre> | ||
|- | |- | ||
|updateComment | |updateComment | ||
Ligne 680 : | Ligne 680 : | ||
|'''contentID''' str | |'''contentID''' str | ||
'''commentID''' str | '''commentID''' str | ||
|"content": "Super jeu !" | |<pre>"content": "Super jeu !"</pre> | ||
|- | |- | ||
|uploadAvatar | |uploadAvatar | ||
|accounts/me/avatar | |accounts/me/avatar | ||
| '''header''' : <code>"Content-Type": "application/octet-stream"</code> | | '''header''' : <code>"Content-Type": "application/octet-stream"</code> <br> | ||
|objet <code>bytes</code> (conversion du fichier image en octets, pas de clé associée) | |'''body''' : objet <code>bytes</code> (conversion du fichier image en octets, pas de clé associée) | ||
|- | |- | ||
|uploadCover | |uploadCover | ||
|accounts/me/cover | |accounts/me/cover | ||
| '''header''' : <code>"Content-Type": "application/octet-stream"</code> | | '''header''' : <code>"Content-Type": "application/octet-stream"</code> <br> | ||
|objet <code>bytes</code> (conversion du fichier image en octets, pas de clé associée) | |'''body''' : objet <code>bytes</code> (conversion du fichier image en octets, pas de clé associée) | ||
|} | |} | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Ligne 701 : | Ligne 701 : | ||
|deleteComment | |deleteComment | ||
|contents/{contentID}/comments/{commentID} | |contents/{contentID}/comments/{commentID} | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
| | | | ||
|- | |- | ||
|deleteCommentVote | |deleteCommentVote | ||
|contents/{contentID}/comments/{commentID}/vote | |contents/{contentID}/comments/{commentID}/vote | ||
|'''contentID''' | |'''contentID''' int | ||
'''commentID''' | '''commentID''' int | ||
| | | | ||
|- | |- | ||
Ligne 714 : | Ligne 714 : | ||
|accounts/me/favorites/forums | |accounts/me/favorites/forums | ||
| | | | ||
| | |<code>"forums" : [50,51,52] # ID des forums</code> | ||
|- | |- | ||
| deleteFavorisGames | | deleteFavorisGames | ||
|accounts/me/favorites/games | |accounts/me/favorites/games | ||
| | | | ||
| | |<code>"forums" : [{"id":"ID du jeu", "machine":"ID de la machine"}]</code> | ||
|- | |- | ||
|deleteFavorisTopics | |deleteFavorisTopics | ||
|accounts/me/favorites/topics | |accounts/me/favorites/topics | ||
| | | | ||
| | |<code>"topics" : [74229153, 74229154] # ID des topics</code> | ||
|} | |} | ||