Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update actually is a PUT method (#1680)

User actually is a GET method
Cette révision appartient à :
Kylart 2017-10-18 06:02:37 +02:00 révisé par kilo
Parent 8a8137fd58
révision 0728e03f33
3 fichiers modifiés avec 4 ajouts et 4 suppressions

Voir le fichier

@ -696,7 +696,7 @@ define({ "api": [
} }
}, },
{ {
"type": "post", "type": "put",
"url": "/update/", "url": "/update/",
"title": "Update a Torrent", "title": "Update a Torrent",
"version": "1.1.1", "version": "1.1.1",

Voir le fichier

@ -696,7 +696,7 @@
} }
}, },
{ {
"type": "post", "type": "put",
"url": "/update/", "url": "/update/",
"title": "Update a Torrent", "title": "Update a Torrent",
"version": "1.1.1", "version": "1.1.1",

Voir le fichier

@ -300,7 +300,7 @@ func APIUploadHandler(c *gin.Context) {
} }
/** /**
* @api {post} /update/ Update a Torrent * @api {put} /update/ Update a Torrent
* @apiVersion 1.1.1 * @apiVersion 1.1.1
* @apiName UpdateTorrent * @apiName UpdateTorrent
* @apiGroup Torrents * @apiGroup Torrents
@ -564,7 +564,7 @@ func APIProfileHandler(c *gin.Context) {
} }
/** /**
* @api {post} /user/ Get a private user profile * @api {get} /user/ Get a private user profile
* @apiVersion 1.1.1 * @apiVersion 1.1.1
* @apiName Private Profile * @apiName Private Profile
* @apiGroup Users * @apiGroup Users