"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "name": "key",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/CreateKeyOption"
+ }
}
],
"responses": {
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the key to delete",
"name": "id",
"in": "path",
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "name": "organization",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreateOrgOption"
+ }
}
],
"responses": {
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "name": "repository",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreateRepoOption"
+ }
}
],
"responses": {
"name": "org",
"in": "path",
"required": true
+ },
+ {
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CreateHookOption"
+ }
}
],
"responses": {
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to update",
"name": "id",
"in": "path",
"required": true
+ },
+ {
+ "name": "body",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/EditHookOption"
+ }
}
],
"responses": {
],
"responses": {
"204": {
- "description": "user is a member",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "user is a member"
},
"404": {
- "description": "user is not a member",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "user is not a member"
}
}
},
],
"responses": {
"204": {
- "description": "member removed",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "member removed"
}
}
}
],
"responses": {
"204": {
- "description": "user is a public member",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "user is a public member"
},
"404": {
- "description": "user is not a public member",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "user is not a public member"
}
}
},
],
"responses": {
"204": {
- "description": "membership publicized",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "membership publicized"
}
}
},
},
{
"type": "integer",
+ "format": "int64",
"description": "search only for repos that the user with the given id owns or contributes to",
"name": "uid",
"in": "query"
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to get",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the hook",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the hook to test",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of comment to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue to add tracked time to",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue to get",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue to edit",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of comment to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the comment to edit",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue to create or update a deadline on",
"name": "index",
"in": "path",
"$ref": "#/responses/IssueDeadline"
},
"403": {
- "description": "Not repo writer",
- "schema": {
- "$ref": "#/responses/forbidden"
- }
+ "description": "Not repo writer"
},
"404": {
- "description": "Issue not found",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "Issue not found"
}
}
}
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the issue",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the label to remove",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the key to get",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the key to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the label to get",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the label to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the label to edit",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the milestone",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the milestone to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the milestone",
"name": "id",
"in": "path",
"name": "repo",
"in": "path",
"required": true
+ },
+ {
+ "type": "integer",
+ "description": "Page number",
+ "name": "page",
+ "in": "query"
+ },
+ {
+ "enum": [
+ "closed",
+ "open",
+ "all"
+ ],
+ "type": "string",
+ "description": "State of pull request: open or closed (optional)",
+ "name": "state",
+ "in": "query"
+ },
+ {
+ "enum": [
+ "oldest",
+ "recentupdate",
+ "leastupdate",
+ "mostcomment",
+ "leastcomment",
+ "priority"
+ ],
+ "type": "string",
+ "description": "Type of sort",
+ "name": "sort",
+ "in": "query"
+ },
+ {
+ "type": "integer",
+ "format": "int64",
+ "description": "ID of the milestone",
+ "name": "milestone",
+ "in": "query"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "collectionFormat": "multi",
+ "description": "Label IDs",
+ "name": "labels",
+ "in": "query"
}
],
"responses": {
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the pull request to get",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the pull request to edit",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the pull request",
"name": "index",
"in": "path",
],
"responses": {
"204": {
- "description": "pull request has been merged",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "pull request has been merged"
},
"404": {
- "description": "pull request has not been merged",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "pull request has not been merged"
}
}
},
},
{
"type": "integer",
+ "format": "int64",
"description": "index of the pull request to merge",
"name": "index",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release to get",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release to edit",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the attachment to get",
"name": "attachment_id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the attachment to delete",
"name": "attachment_id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the release",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "id of the attachment to edit",
"name": "attachment_id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the repo to get",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team to get",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team to delete",
"name": "id",
"in": "path",
],
"responses": {
"204": {
- "description": "team deleted",
- "schema": {
- "$ref": "#/responses/empty"
- }
+ "description": "team deleted"
}
}
},
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of the team",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of key to get",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of key to delete",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of key to get",
"name": "id",
"in": "path",
"parameters": [
{
"type": "integer",
+ "format": "int64",
"description": "id of key to delete",
"name": "id",
"in": "path",
},
{
"type": "integer",
+ "format": "int64",
"description": "ID of the user to search for",
"name": "uid",
"in": "query"
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "name": "accessToken",
+ "in": "body",
+ "schema": {
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ }
+ }
}
],
"responses": {
},
{
"type": "integer",
+ "format": "int64",
"description": "token to be deleted",
"name": "token",
"in": "path",