mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Merge remote-tracking branch 'upstream/master' into team-grant-all-repos
# Conflicts: # models/migrations/migrations.go # models/migrations/v90.go # models/repo.go
This commit is contained in:
+617
-25
@@ -33,6 +33,20 @@
|
||||
],
|
||||
"summary": "List all organizations",
|
||||
"operationId": "adminGetAllOrgs",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of results to return (1-based)",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page size of results, maximum page size is 50",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/OrganizationList"
|
||||
@@ -1033,6 +1047,70 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/orgs/{org}/teams/search": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"organization"
|
||||
],
|
||||
"summary": "Search for teams within an organization",
|
||||
"operationId": "teamSearch",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the organization",
|
||||
"name": "org",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "keywords to search",
|
||||
"name": "q",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "include search within team description (defaults to true)",
|
||||
"name": "include_desc",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "limit size of results",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of results to return (1-based)",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "SearchResults of a successful search",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Team"
|
||||
}
|
||||
},
|
||||
"ok": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/migrate": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
@@ -1079,6 +1157,18 @@
|
||||
"name": "q",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Limit search to repositories with keyword as topic",
|
||||
"name": "topic",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "include search of keyword within repository description",
|
||||
"name": "includeDesc",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
@@ -1530,6 +1620,57 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/commits": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Get a list of all commits from a repository",
|
||||
"operationId": "repoGetAllCommits",
|
||||
"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": "string",
|
||||
"description": "SHA or branch to start listing commits from (usually 'master')",
|
||||
"name": "sha",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of requested commits",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/CommitList"
|
||||
},
|
||||
"404": {
|
||||
"$ref": "#/responses/notFound"
|
||||
},
|
||||
"409": {
|
||||
"$ref": "#/responses/EmptyRepository"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/commits/{ref}/statuses": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -1561,6 +1702,12 @@
|
||||
"name": "ref",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of results",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -2083,7 +2230,7 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Gets the tag of a repository.",
|
||||
"summary": "Gets the tag object of an annotated tag (not lightweight tags)",
|
||||
"operationId": "GetTag",
|
||||
"parameters": [
|
||||
{
|
||||
@@ -2102,7 +2249,7 @@
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "sha of the tag",
|
||||
"description": "sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.",
|
||||
"name": "sha",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -5057,6 +5204,38 @@
|
||||
"name": "sha",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "page number of results",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"oldest",
|
||||
"recentupdate",
|
||||
"leastupdate",
|
||||
"leastindex",
|
||||
"highestindex"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "type of sort",
|
||||
"name": "sort",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"pending",
|
||||
"success",
|
||||
"error",
|
||||
"failure",
|
||||
"warning"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "type of state",
|
||||
"name": "state",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -5336,6 +5515,155 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/topics": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Get list of topics that a repository has",
|
||||
"operationId": "repoListTopics",
|
||||
"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
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/TopicNames"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Replace list of topics for a repository",
|
||||
"operationId": "repoUpdateTopics",
|
||||
"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
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/RepoTopicOptions"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/responses/empty"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repos/{owner}/{repo}/topics/{topic}": {
|
||||
"put": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Add a topic to a repository",
|
||||
"operationId": "repoAddTopíc",
|
||||
"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": "string",
|
||||
"description": "name of the topic to add",
|
||||
"name": "topic",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/responses/empty"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Delete a topic from a repository",
|
||||
"operationId": "repoDeleteTopic",
|
||||
"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": "string",
|
||||
"description": "name of the topic to delete",
|
||||
"name": "topic",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/responses/empty"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/repositories/{id}": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -5700,7 +6028,7 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/Repository"
|
||||
"$ref": "#/responses/TopicListResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6814,6 +7142,45 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"APIError": {
|
||||
"description": "APIError is an api error with a message",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"x-go-name": "Message"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"AccessToken": {
|
||||
"type": "object",
|
||||
"title": "AccessToken represents an API access token.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "ID"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
},
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"x-go-name": "Token"
|
||||
},
|
||||
"token_last_eight": {
|
||||
"type": "string",
|
||||
"x-go-name": "TokenLastEight"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"AddCollaboratorOption": {
|
||||
"description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
|
||||
"type": "object",
|
||||
@@ -7225,6 +7592,10 @@
|
||||
"default": false,
|
||||
"x-go-name": "Active"
|
||||
},
|
||||
"branch_filter": {
|
||||
"type": "string",
|
||||
"x-go-name": "BranchFilter"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -7411,6 +7782,10 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Location"
|
||||
},
|
||||
"repo_admin_change_team_access": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "RepoAdminChangeTeamAccess"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"x-go-name": "UserName"
|
||||
@@ -7540,6 +7915,11 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Gitignores"
|
||||
},
|
||||
"issue_labels": {
|
||||
"description": "Issue Label set to use",
|
||||
"type": "string",
|
||||
"x-go-name": "IssueLabels"
|
||||
},
|
||||
"license": {
|
||||
"description": "License to use",
|
||||
"type": "string",
|
||||
@@ -7616,7 +7996,11 @@
|
||||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
@@ -7624,11 +8008,7 @@
|
||||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
@@ -7820,6 +8200,10 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "Active"
|
||||
},
|
||||
"branch_filter": {
|
||||
"type": "string",
|
||||
"x-go-name": "BranchFilter"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -7950,6 +8334,10 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Location"
|
||||
},
|
||||
"repo_admin_change_team_access": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "RepoAdminChangeTeamAccess"
|
||||
},
|
||||
"visibility": {
|
||||
"description": "possible values are `public`, `limited` or `private`",
|
||||
"type": "string",
|
||||
@@ -8085,6 +8473,12 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"external_tracker": {
|
||||
"$ref": "#/definitions/ExternalTracker"
|
||||
},
|
||||
"external_wiki": {
|
||||
"$ref": "#/definitions/ExternalWiki"
|
||||
},
|
||||
"has_issues": {
|
||||
"description": "either `true` to enable issues for this repository or `false` to disable them.",
|
||||
"type": "boolean",
|
||||
@@ -8105,6 +8499,9 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "IgnoreWhitespaceConflicts"
|
||||
},
|
||||
"internal_tracker": {
|
||||
"$ref": "#/definitions/InternalTracker"
|
||||
},
|
||||
"name": {
|
||||
"description": "name of the repository",
|
||||
"type": "string",
|
||||
@@ -8154,7 +8551,11 @@
|
||||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
@@ -8162,11 +8563,7 @@
|
||||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
@@ -8264,6 +8661,40 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"ExternalTracker": {
|
||||
"description": "ExternalTracker represents settings for external tracker",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"external_tracker_format": {
|
||||
"description": "External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.",
|
||||
"type": "string",
|
||||
"x-go-name": "ExternalTrackerFormat"
|
||||
},
|
||||
"external_tracker_style": {
|
||||
"description": "External Issue Tracker Number Format, either `numeric` or `alphanumeric`",
|
||||
"type": "string",
|
||||
"x-go-name": "ExternalTrackerStyle"
|
||||
},
|
||||
"external_tracker_url": {
|
||||
"description": "URL of external issue tracker.",
|
||||
"type": "string",
|
||||
"x-go-name": "ExternalTrackerURL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"ExternalWiki": {
|
||||
"description": "ExternalWiki represents setting for external wiki",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"external_wiki_url": {
|
||||
"description": "URL of external wiki.",
|
||||
"type": "string",
|
||||
"x-go-name": "ExternalWikiURL"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"FileCommitResponse": {
|
||||
"type": "object",
|
||||
"title": "FileCommitResponse contains information generated from a Git commit for a repo's file.",
|
||||
@@ -8628,6 +9059,28 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"InternalTracker": {
|
||||
"description": "InternalTracker represents settings for internal tracker",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow_only_contributors_to_track_time": {
|
||||
"description": "Let only contributors track time (Built-in issue tracker)",
|
||||
"type": "boolean",
|
||||
"x-go-name": "AllowOnlyContributorsToTrackTime"
|
||||
},
|
||||
"enable_issue_dependencies": {
|
||||
"description": "Enable dependencies for issues and pull requests (Built-in issue tracker)",
|
||||
"type": "boolean",
|
||||
"x-go-name": "EnableIssueDependencies"
|
||||
},
|
||||
"enable_time_tracker": {
|
||||
"description": "Enable time tracking (Built-in issue tracker)",
|
||||
"type": "boolean",
|
||||
"x-go-name": "EnableTimeTracker"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"Issue": {
|
||||
"description": "Issue represents an issue in a repository",
|
||||
"type": "object",
|
||||
@@ -8963,6 +9416,10 @@
|
||||
"type": "string",
|
||||
"x-go-name": "Location"
|
||||
},
|
||||
"repo_admin_change_team_access": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "RepoAdminChangeTeamAccess"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"x-go-name": "UserName"
|
||||
@@ -9415,6 +9872,21 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"RepoTopicOptions": {
|
||||
"description": "RepoTopicOptions a collection of repo topic names",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"topics": {
|
||||
"description": "list of topic names",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Topics"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"Repository": {
|
||||
"description": "Repository represents a repository",
|
||||
"type": "object",
|
||||
@@ -9464,6 +9936,12 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "Empty"
|
||||
},
|
||||
"external_tracker": {
|
||||
"$ref": "#/definitions/ExternalTracker"
|
||||
},
|
||||
"external_wiki": {
|
||||
"$ref": "#/definitions/ExternalWiki"
|
||||
},
|
||||
"fork": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "Fork"
|
||||
@@ -9502,6 +9980,9 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "IgnoreWhitespaceConflicts"
|
||||
},
|
||||
"internal_tracker": {
|
||||
"$ref": "#/definitions/InternalTracker"
|
||||
},
|
||||
"mirror": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "Mirror"
|
||||
@@ -9709,7 +10190,11 @@
|
||||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
@@ -9717,11 +10202,7 @@
|
||||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
@@ -9730,7 +10211,52 @@
|
||||
"description": "TimeStamp defines a timestamp",
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-package": "code.gitea.io/gitea/modules/util"
|
||||
"x-go-package": "code.gitea.io/gitea/modules/timeutil"
|
||||
},
|
||||
"TopicName": {
|
||||
"description": "TopicName a list of repo topic names",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"topics": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "TopicNames"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"TopicResponse": {
|
||||
"description": "TopicResponse for returning topics",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"x-go-name": "Created"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "ID"
|
||||
},
|
||||
"repo_count": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "RepoCount"
|
||||
},
|
||||
"topic_name": {
|
||||
"type": "string",
|
||||
"x-go-name": "Name"
|
||||
},
|
||||
"updated": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"x-go-name": "Updated"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"TrackedTime": {
|
||||
"description": "TrackedTime worked time for an issue / pr",
|
||||
@@ -9933,7 +10459,13 @@
|
||||
}
|
||||
},
|
||||
"AccessTokenList": {
|
||||
"description": "AccessTokenList represents a list of API access token."
|
||||
"description": "AccessTokenList represents a list of API access token.",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/AccessToken"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AnnotatedTag": {
|
||||
"description": "AnnotatedTag",
|
||||
@@ -9992,6 +10524,41 @@
|
||||
"$ref": "#/definitions/Commit"
|
||||
}
|
||||
},
|
||||
"CommitList": {
|
||||
"description": "CommitList",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Commit"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"X-HasMore": {
|
||||
"type": "boolean",
|
||||
"description": "True if there is another page"
|
||||
},
|
||||
"X-Page": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The current page"
|
||||
},
|
||||
"X-PageCount": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Total number of pages"
|
||||
},
|
||||
"X-PerPage": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Commits per page"
|
||||
},
|
||||
"X-Total": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Total commit count"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ContentsListResponse": {
|
||||
"description": "ContentsListResponse",
|
||||
"schema": {
|
||||
@@ -10031,6 +10598,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EmptyRepository": {
|
||||
"description": "EmptyRepository",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/APIError"
|
||||
}
|
||||
},
|
||||
"FileDeleteResponse": {
|
||||
"description": "FileDeleteResponse",
|
||||
"schema": {
|
||||
@@ -10137,7 +10710,10 @@
|
||||
}
|
||||
},
|
||||
"MarkdownRender": {
|
||||
"description": "MarkdownRender is a rendered markdown document"
|
||||
"description": "MarkdownRender is a rendered markdown document",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"Milestone": {
|
||||
"description": "Milestone",
|
||||
@@ -10301,6 +10877,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"TopicListResponse": {
|
||||
"description": "TopicListResponse",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/TopicResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TopicNames": {
|
||||
"description": "TopicNames",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/TopicName"
|
||||
}
|
||||
},
|
||||
"TrackedTime": {
|
||||
"description": "TrackedTime",
|
||||
"schema": {
|
||||
@@ -10377,7 +10968,7 @@
|
||||
"parameterBodies": {
|
||||
"description": "parameterBodies",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/DeleteFileOptions"
|
||||
"$ref": "#/definitions/RepoTopicOptions"
|
||||
}
|
||||
},
|
||||
"redirect": {
|
||||
@@ -10402,6 +10993,7 @@
|
||||
"in": "query"
|
||||
},
|
||||
"AuthorizationHeaderToken": {
|
||||
"description": "API tokens must be prepended with \"token\" followed by a space.",
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
|
||||
Reference in New Issue
Block a user