summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-17 09:17:35 +0200
committerGitHub <noreply@github.com>2021-06-17 09:17:35 +0200
commitc9d053f0caa14e6fec4d04c009c79c9a0940c450 (patch)
treecab2d45513f434cc931c35f73e81f2bc4e811f74 /templates
parent9469e14dc6eb6f2dbd312527ed83d690800a8fc2 (diff)
downloadgitea-c9d053f0caa14e6fec4d04c009c79c9a0940c450.tar.gz
gitea-c9d053f0caa14e6fec4d04c009c79c9a0940c450.zip
[API] User expose counters (#16167)
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 4f54b90492..23e1333767 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -16345,6 +16345,17 @@
"format": "email",
"x-go-name": "Email"
},
+ "followers_count": {
+ "description": "user counts",
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "Followers"
+ },
+ "following_count": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "Following"
+ },
"full_name": {
"description": "the user's full name",
"type": "string",
@@ -16391,6 +16402,11 @@
"type": "boolean",
"x-go-name": "Restricted"
},
+ "starred_repos_count": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "StarredRepos"
+ },
"website": {
"description": "the user's website",
"type": "string",