aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced/api-usage.zh-cn.md
diff options
context:
space:
mode:
authorTobias Balle-Petersen <tobiasbp@gmail.com>2025-05-01 20:42:17 +0200
committerGitHub <noreply@github.com>2025-05-01 21:42:17 +0300
commit3e49fba5781f80b91fbd2496e99586efdc3b0be4 (patch)
tree518de025f190a2a4ae71171fd884755182f8b9e9 /docs/content/doc/advanced/api-usage.zh-cn.md
parente67f74efc86116936aa8097ddfa7c835de4d6d48 (diff)
downloadgitea-main.tar.gz
gitea-main.zip
feat: return time of last usage for public keys and access tokens in the api (#34323)HEADmain
In the Gitea GUI, the user can see the time that _AccessTokens_ and _PublicKeys_ were last used. This information is not returned by the _/users/{username}/tokens_ and _/user/keys_ endpoints in the API. This PR adds the missing data. The time of last usage for for _tokens_ & _keys_ seem to be stored in the _Updated_ field of the structs internally. For consistency, I have used the name _updated_at_ for the new field returned by the _API_. However, for the _API_ user, I don't think that name reflects the data returned, as I believe it is the time of last usage. I propose that we use the name _last_used_at_ instead. Let's hear reviewers opinion on that. * PublicKey 1. _last_used_at_: string($date-time) * AccessToken 1. _created_at_: string($date-time) (for parity with public keys) 2. _last_used_at_: string($date-time) Fix #34313
Diffstat (limited to 'docs/content/doc/advanced/api-usage.zh-cn.md')
0 files changed, 0 insertions, 0 deletions