- Gitea接口
- activitypub
- admin
- List cron tasks
- Run cron task
- List all organizations
- List unadopted repositories
- Adopt unadopted files as a repository
- Delete unadopted files
- Search users according filter conditions
- Create a user
- Delete a user
- Edit an existing user
- Add a public key on behalf of a user
- Delete a user's public key
- Create an organization
- Create a repository on behalf of a user
- miscellaneous
- notification
- List users's notification threads
- Mark notification threads as read, pinned or unread
- Check if unread notifications exist
- Get notification thread by ID
- Mark notification thread as read by ID
- List users's notification threads on a specific repo
- Mark notification threads as read, pinned or unread on a specific repo
- organization
- Create a repository in an organization
- Get list of organizations
- Create an organization
- Get an organization
- Delete an organization
- Edit an organization
- List an organization's webhooks
- Create a hook
- Get a hook
- Delete a hook
- Update a hook
- List an organization's labels
- Create a label for an organization
- Get a single label
- Delete a label
- Update a label
- List an organization's members
- Check if a user is a member of an organization
- Remove a member from an organization
- List an organization's public members
- Check if a user is a public member of an organization
- Publicize a user's membership
- Conceal a user's membership
- List an organization's repos
- Create a repository in an organization
- List an organization's teams
- Create a team
- Search for teams within an organization
- Get a team
- Delete a team
- Edit a team
- List a team's members
- List a particular member of team
- Add a team member
- Remove a team member
- List a team's repos
- List a particular repo of team
- Add a repository to a team
- Remove a repository from a team
- List the current user's organizations
- List a user's organizations
- Get user permissions in organization
- package
- issue
- Search for issues across the repositories that the user has access to
- List a repository's issues
- Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
- List all comments in a repository
- Get a comment
- Delete a comment
- Edit a comment
- Get a list of reactions from a comment of an issue
- Add a reaction to a comment of an issue
- Remove a reaction from a comment of an issue
- Get an issue
- Delete an issue
- Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
- List all comments on an issue
- Add a comment to an issue
- Delete a comment
- Edit a comment
- Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
- Get an issue's labels
- Replace an issue's labels
- Add a label to an issue
- Remove all labels from an issue
- Remove a label from an issue
- Get a list reactions of an issue
- Add a reaction to an issue
- Remove a reaction from an issue
- Delete an issue's existing stopwatch.
- Start stopwatch on an issue.
- Stop an issue's existing stopwatch.
- Get users who subscribed on an issue.
- Check if user is subscribed to an issue
- Subscribe user to issue
- Unsubscribe user from issue
- List all comments and events on an issue
- List an issue's tracked times
- Add tracked time to a issue
- Reset a tracked time of an issue
- Delete specific tracked time
- Get all of a repository's labels
- Create a label
- Get a single label
- Delete a label
- Update a label
- Get all of a repository's opened milestones
- Create a milestone
- Get a milestone
- Delete a milestone
- Update a milestone
- repository
- Migrate a remote git repositoryPOST
- Search for repositoriesGET
- Get a repositoryGET
- Delete a repositoryDELETE
- Edit a repository's properties. Only fields that are set will be changed.PATCH
- Get an archive of a repositoryGET
- Return all users that have write access and can be assigned to issuesGET
- List branch protections for a repositoryGET
- Create a branch protections for a repositoryPOST
- Get a specific branch protection for the repositoryGET
- Delete a specific branch protection for the repositoryDELETE
- Edit a branch protections for a repository. Only fields that are set will be changedPATCH
- List a repository's branchesGET
- Create a branchPOST
- Retrieve a specific branch from a repository, including its effective branch protectionGET
- Delete a specific branch from a repositoryDELETE
- List a repository's collaboratorsGET
- Check if a user is a collaborator of a repositoryGET
- Add a collaborator to a repositoryPUT
- Delete a collaborator from a repositoryDELETE
- Get repository permissions for a userGET
- Get a list of all commits from a repositoryGET
- Get a commit's combined status, by branch/tag/commit referenceGET
- Get a commit's statuses, by branch/tag/commit referenceGET
- Gets the metadata of all the entries of the root dirGET
- Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dirGET
- Update a file in a repositoryPUT
- Create a file in a repositoryPOST
- Delete a file in a repositoryDELETE
- Apply diff patch to repositoryPOST
- Get the EditorConfig definitions of a file in a repositoryGET
- List a repository's forksGET
- Fork a repositoryPOST
- Gets the blob of a repository.GET
- Get a single commit from a repositoryGET
- Get a commit's diff or patchGET
- Get a note corresponding to a single commit from a repositoryGET
- Get specified ref or filtered repository's refsGET
- Get specified ref or filtered repository's refsGET
- Gets the tag object of an annotated tag (not lightweight tags)GET
- Gets the tree of a repository.GET
- List the hooks in a repositoryGET
- Create a hookPOST
- List the Git hooks in a repositoryGET
- Get a Git hookGET
- Delete a Git hook in a repositoryDELETE
- Edit a Git hook in a repositoryPATCH
- Get a hookGET
- Delete a hook in a repositoryDELETE
- Edit a hook in a repositoryPATCH
- Test a push webhookPOST
- Get available issue templates for a repositoryGET
- List a repository's keysGET
- Add a key to a repositoryPOST
- Get a repository's key by idGET
- Delete a key from a repositoryDELETE
- Get languages and number of bytes of code writtenGET
- Get a file or it's LFS object from a repositoryGET
- Sync a mirrored repositoryPOST
- List a repo's pull requestsGET
- Create a pull requestPOST
- Get a pull requestGET
- Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.PATCH
- Get a pull request diff or patchGET
- Get commits for a pull requestGET
- Check if a pull request has been mergedGET
- Merge a pull requestPOST
- Cancel the scheduled auto merge for the given pull requestDELETE
- create review requests for a pull requestPOST
- cancel review requests for a pull requestDELETE
- List all reviews for a pull requestGET
- Create a review to an pull requestPOST
- Get a specific review for a pull requestGET
- Submit a pending review to an pull requestPOST
- Delete a specific review from a pull requestDELETE
- Get a specific review for a pull requestGET
- Dismiss a review for a pull requestPOST
- Cancel to dismiss a review for a pull requestPOST
- Merge PR's baseBranch into headBranchPOST
- Get all push mirrors of the repositoryGET
- add a push mirror to the repositoryPOST
- Sync all push mirrored repositoryPOST
- Get push mirror of the repository by remoteNameGET
- deletes a push mirror from a repository by remoteNameDELETE
- Get a file from a repositoryGET
- List a repo's releasesGET
- Create a releasePOST
- Get changed files for a pull requestGET
- Get a release by tag nameGET
- Delete a release by tag nameDELETE
- Get a releaseGET
- Delete a releaseDELETE
- Update a releasePATCH
- List release's attachmentsGET
- Create a release attachmentPOST
- Get a release attachmentGET
- Delete a release attachmentDELETE
- Edit a release attachmentPATCH
- Return all users that can be requested to review in this repoGET
- Get signing-key.gpg for given repositoryGET
- List a repo's stargazersGET
- Get a commit's statusesGET
- Create a commit statusPOST
- List a repo's watchersGET
- Check if the current user is watching a repoGET
- Watch a repoPUT
- Unwatch a repoDELETE
- List a repository's tagsGET
- Create a new git tag in a repositoryPOST
- Get the tag of a repository by tag nameGET
- Delete a repository's tag by nameDELETE
- List a repository's teamsGET
- Check if a team is assigned to a repositoryGET
- Add a team to a repositoryPUT
- Delete a team from a repositoryDELETE
- List a repo's tracked timesGET
- List a user's tracked times in a repoGET
- Get list of topics that a repository hasGET
- Replace list of topics for a repositoryPUT
- Add a topic to a repositoryPUT
- Delete a topic from a repositoryDELETE
- Transfer a repo ownershipPOST
- Accept a repo transferPOST
- Reject a repo transferPOST
- Create a wiki pagePOST
- Get a wiki pageGET
- Delete a wiki pageDELETE
- Edit a wiki pagePATCH
- Get all wiki pagesGET
- Get revisions of a wiki pageGET
- Create a repository using a templatePOST
- Get a repository by idGET
- search topics via keywordGET
- Create a repositoryPOST
- settings
- user
- Get the authenticated user
- List the authenticated user's oauth2 applications
- creates a new OAuth2 application
- get an OAuth2 Application
- delete an OAuth2 Application
- update an OAuth2 Application, this includes regenerating the client secret
- List the authenticated user's email addresses
- Add email addresses
- Delete email addresses
- List the authenticated user's followers
- List the users that the authenticated user is following
- Check whether a user is followed by the authenticated user
- Follow a user
- Unfollow a user
- Get a Token to verify
- Verify a GPG key
- List the authenticated user's GPG keys
- Create a GPG key
- Get a GPG key
- Remove a GPG key
- List the authenticated user's public keys
- Create a public key
- Get a public key
- Delete a public key
- List the repos that the authenticated user owns
- Get user settings
- Update user settings
- The repos that the authenticated user has starred
- Whether the authenticated is starring the repo
- Star the given repo
- Unstar the given repo
- Get list of all existing stopwatches
- List repositories watched by the authenticated user
- List all the teams a user belongs to
- List the current user's tracked times
- Search for users
- Get a user
- List the given user's followers
- List the users that the given user is following
- Check if one user is following another user
- List the given user's GPG keys
- Get a user's heatmap
- List the given user's public keys
- List the repos owned by the given user
- The repos that the given user has starred
- List the repositories watched by a user
- List the authenticated user's access tokens
- Create an access token
- delete an access token
- Hat拓展接口
- repository
- actions
- 获取仓库所有文件文件夹
- 获取仓库路径下所有文件文件夹
- 仓库内搜索文件
- 获取单个commit内容
- 获取单个commit的dif内容
- 创建一个webhook
- 获取一个webhook推送历史
- Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
- 获取所有的发行版
- 获取一个发行版
- 创建一个发行版
- 更新一个发行版
- 获取所有分支名称
- 获取所有分支 (按类型分组)
- 获取所有标签名称
- 获取所有标签
- 获取仓库分支、标签数量
- 获取仓库readme文件内容
- 获取仓库目录下readme文件内容
- 获取所有commits(按时间分组)
- 获取仓库贡献者
- 获取仓库commit数量、标签数量、分支数量、发行版数量(按分支)
- 获取文件或文件夹下的commit列表
- 获取仓库blame内容
- 分支、标签、commit的比较接口
- 迁移项目(直接)
- 获取一个合并请求
- 获取合并请求下的commit列表
- Get changed files for a pull request
- 仓库下批量更改文件(创建、更新、删除)
- 获取合并请求下所有版本记录
- 获取合并请求下一个版本记录的diff内容
- 获取仓库代码贡献情况
- 获取所有分支
- 获取仓库贡献者(包括代码行)
- 恢复一个已删除分支
- 获取最近的commit列表
- 删除一个仓库
- organization
- users
- admin
- repository
List a user's tracked times in a repo
将废弃
GET
/repos/{owner}/{repo}/times/{user}
repository
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Path 参数
owner
string
必需
repo
string
必需
user
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/repos///times/' \
--header 'Authorization: Basic Og=='
返回响应
🟢200成功
application/json
Body
array of:
created
string <date-time>
可选
id
integer <int64>
可选
issue
object (Issue)
可选
assets
array[object (Attachment) {7}]
可选
assignee
object (User)
可选
assignees
array[object (User) {20}]
可选
body
string
可选
closed_at
string <date-time>
可选
comments
integer <int64>
可选
created_at
string <date-time>
可选
due_date
string <date-time>
可选
html_url
string
可选
id
integer <int64>
可选
is_locked
boolean
可选
labels
array[object (Label) {7}]
可选
milestone
object (Milestone)
可选
number
integer <int64>
可选
original_author
string
可选
original_author_id
integer <int64>
可选
pin_order
integer <int64>
可选
pull_request
object (PullRequestMeta)
可选
ref
string
可选
repository
object (RepositoryMeta)
可选
state
string
可选
title
string
可选
updated_at
string <date-time>
可选
url
string
可选
user
object (User)
可选
issue_id
integer <int64>
可选
time
integer <int64>
可选
user_id
integer <int64>
可选
user_name
string
可选
示例
[
{
"created": "2019-08-24T14:15:22Z",
"id": 0,
"issue": {
"assets": [
{
"browser_download_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"download_count": 0,
"id": 0,
"name": "string",
"size": 0,
"uuid": "string"
}
],
"assignee": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"assignees": [
{
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
}
],
"body": "string",
"closed_at": "2019-08-24T14:15:22Z",
"comments": 0,
"created_at": "2019-08-24T14:15:22Z",
"due_date": "2019-08-24T14:15:22Z",
"html_url": "string",
"id": 0,
"is_locked": true,
"labels": [
{
"color": "00aabb",
"description": "string",
"exclusive": false,
"id": 0,
"is_archived": false,
"name": "string",
"url": "string"
}
],
"milestone": {
"closed_at": "2019-08-24T14:15:22Z",
"closed_issues": 0,
"created_at": "2019-08-24T14:15:22Z",
"description": "string",
"due_on": "2019-08-24T14:15:22Z",
"id": 0,
"open_issues": 0,
"state": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z"
},
"number": 0,
"original_author": "string",
"original_author_id": 0,
"pin_order": 0,
"pull_request": {
"merged": true,
"merged_at": "2019-08-24T14:15:22Z"
},
"ref": "string",
"repository": {
"full_name": "string",
"id": 0,
"name": "string",
"owner": "string"
},
"state": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"url": "string",
"user": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
}
},
"issue_id": 0,
"time": 0,
"user_id": 0,
"user_name": "string"
}
]
🟠400400
🟠403403
🟠404404
修改于 2024-03-15 02:18:17