summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2018-09-21 09:56:26 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2018-09-21 16:56:26 +0800
commit36e7cb975536adc774e854f64a70694ba3a1e87f (patch)
treec2f259fc364b9888a262dc156d296cd05d76b12d /routers
parentdab02b80fd27a6f1f3a5089cfd16f312a1f89bb7 (diff)
downloadgitea-36e7cb975536adc774e854f64a70694ba3a1e87f.tar.gz
gitea-36e7cb975536adc774e854f64a70694ba3a1e87f.zip
Update Swagger API to match the return of /users/search (#4847)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/user/user.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go
index 49e5f34136..edd5d1b1cb 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -33,7 +33,16 @@ func Search(ctx *context.APIContext) {
// type: integer
// responses:
// "200":
- // "$ref": "#/responses/UserList"
+ // description: "SearchResults of a successful search"
+ // schema:
+ // type: object
+ // properties:
+ // ok:
+ // type: boolean
+ // data:
+ // type: array
+ // items:
+ // "$ref": "#/definitions/User"
opts := &models.SearchUserOptions{
Keyword: strings.Trim(ctx.Query("q"), " "),
Type: models.UserTypeIndividual,