@ -321,9 +321,13 @@
"operationId" : "renderMarkdownRaw" ,
"operationId" : "renderMarkdownRaw" ,
"parameters" : [
"parameters" : [
{
{
"type" : "string " ,
"description" : "Request body to render " ,
"name" : "body" ,
"name" : "body" ,
"in" : "body"
"in" : "body" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
}
] ,
] ,
"responses" : {
"responses" : {
@ -448,6 +452,15 @@
] ,
] ,
"summary" : "List an organization's webhooks" ,
"summary" : "List an organization's webhooks" ,
"operationId" : "orgListHooks" ,
"operationId" : "orgListHooks" ,
"parameters" : [
{
"type" : "string" ,
"description" : "name of the organization" ,
"name" : "org" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"200" : {
"200" : {
"$ref" : "#/responses/HookList"
"$ref" : "#/responses/HookList"
@ -468,6 +481,15 @@
] ,
] ,
"summary" : "Create a hook" ,
"summary" : "Create a hook" ,
"operationId" : "orgCreateHook" ,
"operationId" : "orgCreateHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "name of the organization" ,
"name" : "org" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"201" : {
"201" : {
"$ref" : "#/responses/Hook"
"$ref" : "#/responses/Hook"
@ -485,6 +507,22 @@
] ,
] ,
"summary" : "Get a hook" ,
"summary" : "Get a hook" ,
"operationId" : "orgGetHook" ,
"operationId" : "orgGetHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "name of the organization" ,
"name" : "org" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the hook to get" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"200" : {
"200" : {
"$ref" : "#/responses/Hook"
"$ref" : "#/responses/Hook"
@ -500,6 +538,22 @@
] ,
] ,
"summary" : "Delete a hook" ,
"summary" : "Delete a hook" ,
"operationId" : "orgDeleteHook" ,
"operationId" : "orgDeleteHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "name of the organization" ,
"name" : "org" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the hook to delete" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"204" : {
"204" : {
"$ref" : "#/responses/empty"
"$ref" : "#/responses/empty"
@ -518,6 +572,22 @@
] ,
] ,
"summary" : "Update a hook" ,
"summary" : "Update a hook" ,
"operationId" : "orgEditHook" ,
"operationId" : "orgEditHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "name of the organization" ,
"name" : "org" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the hook to update" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"200" : {
"200" : {
"$ref" : "#/responses/Hook"
"$ref" : "#/responses/Hook"
@ -994,7 +1064,7 @@
}
}
}
}
} ,
} ,
"/repos/{owner}/{repo}/archive/{filepath }" : {
"/repos/{owner}/{repo}/archive/{archive }" : {
"get" : {
"get" : {
"produces" : [
"produces" : [
"application/json"
"application/json"
@ -1530,6 +1600,47 @@
}
}
}
}
} ,
} ,
"delete" : {
"produces" : [
"application/json"
] ,
"tags" : [
"repository"
] ,
"summary" : "Delete a hook in a repository" ,
"operationId" : "repoDeleteHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the hook to delete" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"204" : {
"$ref" : "#/responses/empty"
} ,
"404" : {
"$ref" : "#/responses/notFound"
}
}
} ,
"patch" : {
"patch" : {
"produces" : [
"produces" : [
"application/json"
"application/json"
@ -1554,6 +1665,13 @@
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
} ,
} ,
{
"type" : "integer" ,
"description" : "index of the hook" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
} ,
{
{
"name" : "body" ,
"name" : "body" ,
"in" : "body" ,
"in" : "body" ,
@ -1825,6 +1943,100 @@
}
}
}
}
} ,
} ,
"/repos/{owner}/{repo}/issues/{id}/times" : {
"get" : {
"produces" : [
"application/json"
] ,
"tags" : [
"issue"
] ,
"summary" : "List an issue's tracked times" ,
"operationId" : "issueTrackedTimes" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "index of the issue" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"200" : {
"$ref" : "#/responses/TrackedTimeList"
}
}
} ,
"post" : {
"consumes" : [
"application/json"
] ,
"produces" : [
"application/json"
] ,
"tags" : [
"issue"
] ,
"summary" : "Add a tracked time to a issue" ,
"operationId" : "issueAddTime" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "index of the issue to add tracked time to" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
} ,
{
"name" : "body" ,
"in" : "body" ,
"schema" : {
"$ref" : "#/definitions/AddTimeOption"
}
}
] ,
"responses" : {
"200" : {
"$ref" : "#/responses/TrackedTime"
} ,
"400" : {
"$ref" : "#/responses/error"
} ,
"403" : {
"$ref" : "#/responses/error"
}
}
}
} ,
"/repos/{owner}/{repo}/issues/{index}" : {
"/repos/{owner}/{repo}/issues/{index}" : {
"get" : {
"get" : {
"produces" : [
"produces" : [
@ -1941,7 +2153,7 @@
{
{
"type" : "integer" ,
"type" : "integer" ,
"description" : "index of the issue" ,
"description" : "index of the issue" ,
"name" : "id" ,
"name" : "in dex " ,
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
} ,
} ,
@ -1988,7 +2200,7 @@
{
{
"type" : "integer" ,
"type" : "integer" ,
"description" : "index of the issue" ,
"description" : "index of the issue" ,
"name" : "id" ,
"name" : "in dex " ,
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
} ,
} ,
@ -2332,100 +2544,6 @@
}
}
}
}
} ,
} ,
"/repos/{owner}/{repo}/issues/{index}/times" : {
"get" : {
"produces" : [
"application/json"
] ,
"tags" : [
"issue"
] ,
"summary" : "List an issue's tracked times" ,
"operationId" : "issueTrackedTimes" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "index of the issue" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"200" : {
"$ref" : "#/responses/TrackedTimeList"
}
}
} ,
"post" : {
"consumes" : [
"application/json"
] ,
"produces" : [
"application/json"
] ,
"tags" : [
"issue"
] ,
"summary" : "Add a tracked time to a issue" ,
"operationId" : "issueAddTime" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "index of the issue to add tracked time to" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
} ,
{
"name" : "body" ,
"in" : "body" ,
"schema" : {
"$ref" : "#/definitions/AddTimeOption"
}
}
] ,
"responses" : {
"200" : {
"$ref" : "#/responses/TrackedTime"
} ,
"400" : {
"$ref" : "#/responses/error"
} ,
"403" : {
"$ref" : "#/responses/error"
}
}
}
} ,
"/repos/{owner}/{repo}/keys" : {
"/repos/{owner}/{repo}/keys" : {
"get" : {
"get" : {
"produces" : [
"produces" : [
@ -2781,7 +2899,7 @@
"issue"
"issue"
] ,
] ,
"summary" : "Get all of a repository's milestones" ,
"summary" : "Get all of a repository's milestones" ,
"operationId" : "issueGetMilestones" ,
"operationId" : "issueGetMilestonesList " ,
"parameters" : [
"parameters" : [
{
{
"type" : "string" ,
"type" : "string" ,
@ -2796,13 +2914,6 @@
"name" : "repo" ,
"name" : "repo" ,
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the milestone to get" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
}
] ,
] ,
"responses" : {
"responses" : {
@ -2863,6 +2974,29 @@
] ,
] ,
"summary" : "Get a milestone" ,
"summary" : "Get a milestone" ,
"operationId" : "issueGetMilestone" ,
"operationId" : "issueGetMilestone" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the milestone" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"200" : {
"200" : {
"$ref" : "#/responses/Milestone"
"$ref" : "#/responses/Milestone"
@ -2893,7 +3027,7 @@
{
{
"type" : "integer" ,
"type" : "integer" ,
"description" : "id of the milestone to delete" ,
"description" : "id of the milestone to delete" ,
"name" : "body " ,
"name" : "id " ,
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
}
}
@ -2931,6 +3065,13 @@
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
} ,
} ,
{
"type" : "integer" ,
"description" : "id of the milestone" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
} ,
{
{
"name" : "body" ,
"name" : "body" ,
"in" : "body" ,
"in" : "body" ,
@ -3979,7 +4120,7 @@
}
}
}
}
} ,
} ,
"/repos/{owner}/{repo}/times/{track er}" : {
"/repos/{owner}/{repo}/times/{us er}" : {
"get" : {
"get" : {
"produces" : [
"produces" : [
"application/json"
"application/json"
@ -4019,49 +4160,6 @@
}
}
}
}
} ,
} ,
"/repos/{user}/{repo}/hooks/{id}" : {
"delete" : {
"produces" : [
"application/json"
] ,
"tags" : [
"repository"
] ,
"summary" : "Delete a hook in a repository" ,
"operationId" : "repoDeleteHook" ,
"parameters" : [
{
"type" : "string" ,
"description" : "owner of the repo" ,
"name" : "owner" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "string" ,
"description" : "name of the repo" ,
"name" : "repo" ,
"in" : "path" ,
"required" : true
} ,
{
"type" : "integer" ,
"description" : "id of the hook to delete" ,
"name" : "id" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"204" : {
"$ref" : "#/responses/empty"
} ,
"404" : {
"$ref" : "#/responses/notFound"
}
}
}
} ,
"/repositories/{id}" : {
"/repositories/{id}" : {
"get" : {
"get" : {
"produces" : [
"produces" : [
@ -4238,7 +4336,7 @@
"organization"
"organization"
] ,
] ,
"summary" : "Remove a team member" ,
"summary" : "Remove a team member" ,
"operationId" : "orgAdd TeamMember" ,
"operationId" : "orgRemove TeamMember" ,
"parameters" : [
"parameters" : [
{
{
"type" : "integer" ,
"type" : "integer" ,
@ -4297,7 +4395,7 @@
"organization"
"organization"
] ,
] ,
"summary" : "Add a repository to a team" ,
"summary" : "Add a repository to a team" ,
"operationId" : "orgAddTeamMember " ,
"operationId" : "orgAddTeamRepository " ,
"parameters" : [
"parameters" : [
{
{
"type" : "integer" ,
"type" : "integer" ,
@ -4336,7 +4434,7 @@
"organization"
"organization"
] ,
] ,
"summary" : "Remove a repository from a team" ,
"summary" : "Remove a repository from a team" ,
"operationId" : "orgAddTeamMember " ,
"operationId" : "orgRemoveTeamRepository " ,
"parameters" : [
"parameters" : [
{
{
"type" : "integer" ,
"type" : "integer" ,
@ -4379,10 +4477,10 @@
"operationId" : "topicSearch" ,
"operationId" : "topicSearch" ,
"parameters" : [
"parameters" : [
{
{
"type" : "inte ger " ,
"type" : "str ing" ,
"description" : "id of the repo to get " ,
"description" : "keywords to search " ,
"name" : "keyword " ,
"name" : "q " ,
"in" : "path " ,
"in" : "query " ,
"required" : true
"required" : true
}
}
] ,
] ,
@ -4509,7 +4607,7 @@
}
}
}
}
} ,
} ,
"/user/following/{followe e}" : {
"/user/following/{usernam e}" : {
"get" : {
"get" : {
"tags" : [
"tags" : [
"user"
"user"
@ -4520,7 +4618,7 @@
{
{
"type" : "string" ,
"type" : "string" ,
"description" : "username of followed user" ,
"description" : "username of followed user" ,
"name" : "followe e" ,
"name" : "usernam e" ,
"in" : "path" ,
"in" : "path" ,
"required" : true
"required" : true
}
}
@ -4533,9 +4631,7 @@
"$ref" : "#/responses/notFound"
"$ref" : "#/responses/notFound"
}
}
}
}
}
} ,
} ,
"/user/following/{username}" : {
"put" : {
"put" : {
"tags" : [
"tags" : [
"user"
"user"
@ -5301,6 +5397,15 @@
] ,
] ,
"summary" : "List the authenticated user's access tokens" ,
"summary" : "List the authenticated user's access tokens" ,
"operationId" : "userGetTokens" ,
"operationId" : "userGetTokens" ,
"parameters" : [
{
"type" : "string" ,
"description" : "username of user" ,
"name" : "username" ,
"in" : "path" ,
"required" : true
}
] ,
"responses" : {
"responses" : {
"200" : {
"200" : {
"$ref" : "#/responses/AccessTokenList"
"$ref" : "#/responses/AccessTokenList"
@ -5323,8 +5428,10 @@
{
{
"type" : "string" ,
"type" : "string" ,
"x-go-name" : "Name" ,
"x-go-name" : "Name" ,
"name" : "name" ,
"description" : "username of user" ,
"in" : "query"
"name" : "username" ,
"in" : "path" ,
"required" : true
}
}
] ,
] ,
"responses" : {
"responses" : {
@ -7612,9 +7719,6 @@
"description" : "SearchResults" ,
"description" : "SearchResults" ,
"schema" : {
"schema" : {
"$ref" : "#/definitions/SearchResults"
"$ref" : "#/definitions/SearchResults"
} ,
"headers" : {
"body" : { }
}
}
} ,
} ,
"ServerVersion" : {
"ServerVersion" : {
@ -7721,40 +7825,6 @@
"description" : "parameterBodies" ,
"description" : "parameterBodies" ,
"schema" : {
"schema" : {
"$ref" : "#/definitions/EditAttachmentOptions"
"$ref" : "#/definitions/EditAttachmentOptions"
} ,
"headers" : {
"AddCollaboratorOption" : { } ,
"AddTimeOption" : { } ,
"CreateEmailOption" : { } ,
"CreateForkOption" : { } ,
"CreateHookOption" : { } ,
"CreateIssueCommentOption" : { } ,
"CreateIssueOption" : { } ,
"CreateKeyOption" : { } ,
"CreateLabelOption" : { } ,
"CreateMilestoneOption" : { } ,
"CreateOrgOption" : { } ,
"CreatePullRequestOption" : { } ,
"CreateReleaseOption" : { } ,
"CreateRepoOption" : { } ,
"CreateStatusOption" : { } ,
"CreateTeamOption" : { } ,
"CreateUserOption" : { } ,
"DeleteEmailOption" : { } ,
"EditAttachmentOptions" : { } ,
"EditHookOption" : { } ,
"EditIssueCommentOption" : { } ,
"EditIssueOption" : { } ,
"EditLabelOption" : { } ,
"EditMilestoneOption" : { } ,
"EditOrgOption" : { } ,
"EditPullRequestOption" : { } ,
"EditReleaseOption" : { } ,
"EditTeamOption" : { } ,
"EditUserOption" : { } ,
"IssueLabelsOption" : { } ,
"MarkdownOption" : { } ,
"MigrateRepoForm" : { }
}
}
} ,
} ,
"redirect" : {
"redirect" : {