diff options
author | Lauris BH <lauris@nix.lv> | 2020-06-07 14:48:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 14:48:41 +0300 |
commit | 2874ab54bccd7a4ebd6b8a51367eb8c1d9b16720 (patch) | |
tree | 2fd5ff4f7351afeb60361c1aeec9ff437e5d6b2e /routers/api/v1/swagger/repo.go | |
parent | 94f60e199bc504c6cfb7b853889e3ceb2a837adc (diff) | |
download | gitea-2874ab54bccd7a4ebd6b8a51367eb8c1d9b16720.tar.gz gitea-2874ab54bccd7a4ebd6b8a51367eb8c1d9b16720.zip |
Add language statistics API endpoint (#11737)
* Add language statistics API
* Add tests
Diffstat (limited to 'routers/api/v1/swagger/repo.go')
-rw-r--r-- | routers/api/v1/swagger/repo.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index bcbc2b5fa9..bce9e45c37 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -302,3 +302,10 @@ type swaggerTopicNames struct { // in: body Body api.TopicName `json:"body"` } + +// LanguageStatistics +// swagger:response LanguageStatistics +type swaggerLanguageStatistics struct { + // in: body + Body map[string]int64 `json:"body"` +} |