forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Users
无闻 edited this page Aug 18, 2015
·
11 revisions
GET /users/search
Name | Type | Description |
---|---|---|
q | string | Required Keyword of username |
limit | int | Limit number of search results, default is 10 |
$ curl https://try.gogs.io/api/v1/users/search?q=u&limit=5
Request without providing basic authentication or access token will result empty
Status: 200 OK
Content-Type: application/json
{
"data": [
{
"id": 1,
"username": "unknwon",
"full_name": "",
"email": "[email protected]",
"avatar_url": "/avatars/1"
},
{
"id": 4,
"username": "user1",
"full_name": "",
"email": "[email protected]",
"avatar_url": "/avatars/4"
}
],
"ok": true
}
GET /users/:username
Request without providing basic authentication or access token will result empty
Status: 200 OK
Content-Type: application/json
{
"id": 1,
"username": "unknwon",
"full_name": "",
"email": "[email protected]",
"avatar_url": "/avatars/1"
}