File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,16 @@ func Search(ctx *context.APIContext) {
33
33
// type: integer
34
34
// responses:
35
35
// "200":
36
- // "$ref": "#/responses/UserList"
36
+ // description: "SearchResults of a successful search"
37
+ // schema:
38
+ // type: object
39
+ // properties:
40
+ // ok:
41
+ // type: boolean
42
+ // data:
43
+ // type: array
44
+ // items:
45
+ // "$ref": "#/definitions/User"
37
46
opts := & models.SearchUserOptions {
38
47
Keyword : strings .Trim (ctx .Query ("q" ), " " ),
39
48
Type : models .UserTypeIndividual ,
Original file line number Diff line number Diff line change 5212
5212
],
5213
5213
"responses": {
5214
5214
"200": {
5215
- "$ref": "#/responses/UserList"
5215
+ "description": "SearchResults of a successful search",
5216
+ "schema": {
5217
+ "type": "object",
5218
+ "properties": {
5219
+ "data": {
5220
+ "type": "array",
5221
+ "items": {
5222
+ "$ref": "#/definitions/User"
5223
+ }
5224
+ },
5225
+ "ok": {
5226
+ "type": "boolean"
5227
+ }
5228
+ }
5229
+ }
5216
5230
}
5217
5231
}
5218
5232
}
You can’t perform that action at this time.
0 commit comments