diff options
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/user/user.go | 11 |
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, |