Fix error from web swagger editor: two action under matching url (but different var name)

This commit is contained in:
Antoine GIRARD 2018-06-11 15:50:09 +02:00
parent 52dae70fc3
commit 7ac1cbf530
2 changed files with 5 additions and 7 deletions

View File

@ -4607,7 +4607,7 @@
}
}
},
"/user/following/{followee}": {
"/user/following/{username}": {
"get": {
"tags": [
"user"
@ -4618,7 +4618,7 @@
{
"type": "string",
"description": "username of followed user",
"name": "followee",
"name": "username",
"in": "path",
"required": true
}
@ -4631,9 +4631,7 @@
"$ref": "#/responses/notFound"
}
}
}
},
"/user/following/{username}": {
},
"put": {
"tags": [
"user"

View File

@ -119,11 +119,11 @@ func checkUserFollowing(ctx *context.APIContext, u *models.User, followID int64)
// CheckMyFollowing whether the given user is followed by the authenticated user
func CheckMyFollowing(ctx *context.APIContext) {
// swagger:operation GET /user/following/{followee} user userCurrentCheckFollowing
// swagger:operation GET /user/following/{username} user userCurrentCheckFollowing
// ---
// summary: Check whether a user is followed by the authenticated user
// parameters:
// - name: followee
// - name: username
// in: path
// description: username of followed user
// type: string