forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Organizations
Unknwon edited this page Dec 17, 2015
·
1 revision
List organizations for the authenticated user.
GET /user/orgs
Status: 200 OK
Content-Type: application/json
[
{
"id": 6,
"username": "gogs",
"full_name": "Gogs",
"avatar_url": "/avatars/6",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}
]List public organization memberships for the specified user.
GET /users/:username/orgs
Status: 200 OK
Content-Type: application/json
[
{
"id": 6,
"username": "gogs",
"full_name": "Gogs",
"avatar_url": "/avatars/6",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}
]GET /orgs/:orgname
Status: 200 OK
Content-Type: application/json
{
"id": 6,
"username": "gogs",
"full_name": "Gogs",
"avatar_url": "/avatars/6",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}PATCH /orgs/:org
| Name | Type | Description |
|---|---|---|
| full_name | string | Full name of organization |
| description | string | Description to the organization |
| website | string | Official website |
| location | string | Organization location |
{
"full_name": "Gogs2",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}Status: 200 OK
Content-Type: application/json
{
"id": 6,
"username": "gogs",
"full_name": "Gogs2",
"avatar_url": "/avatars/6",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}