1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Ferdinand Mütsch 2021-09-05 20:26:05 +02:00
commit 9b5f00ea5d
4 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ func (h *StatsHandler) RegisterRoutes(router *mux.Router) {
// @Tags wakatime // @Tags wakatime
// @Produce json // @Produce json
// @Param user path string true "User ID to fetch data for (or 'current')" // @Param user path string true "User ID to fetch data for (or 'current')"
// @Param range query string false "Range interval identifier" Enums(today, yesterday, week, month, year, 7_days, last_7_days, 30_days, last_30_days, 12_months, last_12_months, any) // @Param range path string false "Range interval identifier" Enums(today, yesterday, week, month, year, 7_days, last_7_days, 30_days, last_30_days, 12_months, last_12_months, any)
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @Success 200 {object} v1.StatsViewModel // @Success 200 {object} v1.StatsViewModel
// @Router /compat/wakatime/v1/users/{user}/stats/{range} [get] // @Router /compat/wakatime/v1/users/{user}/stats/{range} [get]

View File

@ -313,7 +313,7 @@ var doc = `{
"type": "string", "type": "string",
"description": "Range interval identifier", "description": "Range interval identifier",
"name": "range", "name": "range",
"in": "query" "in": "path"
} }
], ],
"responses": { "responses": {

View File

@ -297,7 +297,7 @@
"type": "string", "type": "string",
"description": "Range interval identifier", "description": "Range interval identifier",
"name": "range", "name": "range",
"in": "query" "in": "path"
} }
], ],
"responses": { "responses": {

View File

@ -524,7 +524,7 @@ paths:
- 12_months - 12_months
- last_12_months - last_12_months
- any - any
in: query in: path
name: range name: range
type: string type: string
produces: produces: