mirror of
https://github.com/go-gitea/gitea
synced 2025-10-28 09:58:25 +00:00
Add a login/login-name/username disambiguation to affected endpoint parameters and response/request models (#34901)
Issue: [link](https://github.com/go-gitea/gitea/issues/9637) Changes introduced: I have clarified the problematic terms (`login`, `login_name`, and `username`) in all affected endpoints. The changes were made to relevant: - HTTP endpoint parameters' descriptions - response/request models' fields
This commit is contained in:
@@ -67,7 +67,7 @@ func ListFollowers(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of user
|
||||
// description: username of the user whose followers are to be listed
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: page
|
||||
@@ -131,7 +131,7 @@ func ListFollowing(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of user
|
||||
// description: username of the user whose followed users are to be listed
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: page
|
||||
@@ -167,7 +167,7 @@ func CheckMyFollowing(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of followed user
|
||||
// description: username of the user to check for authenticated followers
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
@@ -187,12 +187,12 @@ func CheckFollowing(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of following user
|
||||
// description: username of the following user
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: target
|
||||
// in: path
|
||||
// description: username of followed user
|
||||
// description: username of the followed user
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
@@ -216,7 +216,7 @@ func Follow(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of user to follow
|
||||
// description: username of the user to follow
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
@@ -246,7 +246,7 @@ func Unfollow(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of user to unfollow
|
||||
// description: username of the user to unfollow
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
|
||||
Reference in New Issue
Block a user