跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

List a user's badges

GET
/admin/users/{username}/badges
curl --request GET \
--url https://gitea.example.com/api/v1/admin/users/example/badges \
--header 'Authorization: Basic <credentials>'
username
required
string

Username of user

BadgeList

Media typeapplication/json
Array<object>

Badge represents a user badge

object
description
string
id
integer format: int64
image_url
string
slug
string
Examplegenerated
[
{
"description": "example",
"id": 1,
"image_url": "example",
"slug": "example"
}
]

APINotFound is a not found empty response

Media typeapplication/json