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
|
||||
// @Produce json
|
||||
// @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
|
||||
// @Success 200 {object} v1.StatsViewModel
|
||||
// @Router /compat/wakatime/v1/users/{user}/stats/{range} [get]
|
||||
|
@ -313,7 +313,7 @@ var doc = `{
|
||||
"type": "string",
|
||||
"description": "Range interval identifier",
|
||||
"name": "range",
|
||||
"in": "query"
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
@ -297,7 +297,7 @@
|
||||
"type": "string",
|
||||
"description": "Range interval identifier",
|
||||
"name": "range",
|
||||
"in": "query"
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
@ -524,7 +524,7 @@ paths:
|
||||
- 12_months
|
||||
- last_12_months
|
||||
- any
|
||||
in: query
|
||||
in: path
|
||||
name: range
|
||||
type: string
|
||||
produces:
|
||||
|
Loading…
Reference in New Issue
Block a user