Fix error from web swagger editor: two action under matching url (but different var name)
This commit is contained in:
parent
52dae70fc3
commit
7ac1cbf530
8
public/swagger.v1.json
vendored
8
public/swagger.v1.json
vendored
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user