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:
commit
9b5f00ea5d
@ -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]
|
||||||
|
@ -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": {
|
||||||
|
@ -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": {
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user