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

fix: neutered file system

docs: add filter params to api docs
This commit is contained in:
Ferdinand Mütsch
2021-12-26 19:29:17 +01:00
parent cbcdd938eb
commit 6f9015d3d8
7 changed files with 316 additions and 9 deletions

View File

@ -313,6 +313,42 @@ var doc = `{
"description": "Range interval identifier",
"name": "range",
"in": "path"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {
@ -380,6 +416,42 @@ var doc = `{
"description": "End date (e.g. '2021-02-08')",
"name": "end",
"in": "query"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {
@ -719,6 +791,42 @@ var doc = `{
"description": "Whether to recompute the summary from raw heartbeat or use cache",
"name": "recompute",
"in": "query"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {

View File

@ -298,6 +298,42 @@
"description": "Range interval identifier",
"name": "range",
"in": "path"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {
@ -365,6 +401,42 @@
"description": "End date (e.g. '2021-02-08')",
"name": "end",
"in": "query"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {
@ -704,6 +776,42 @@
"description": "Whether to recompute the summary from raw heartbeat or use cache",
"name": "recompute",
"in": "query"
},
{
"type": "string",
"description": "Project to filter by",
"name": "project",
"in": "query"
},
{
"type": "string",
"description": "Language to filter by",
"name": "language",
"in": "query"
},
{
"type": "string",
"description": "Editor to filter by",
"name": "editor",
"in": "query"
},
{
"type": "string",
"description": "OS to filter by",
"name": "operating_system",
"in": "query"
},
{
"type": "string",
"description": "Machine to filter by",
"name": "machine",
"in": "query"
},
{
"type": "string",
"description": "Project label to filter by",
"name": "label",
"in": "query"
}
],
"responses": {

View File

@ -536,6 +536,30 @@ paths:
in: path
name: range
type: string
- description: Project to filter by
in: query
name: project
type: string
- description: Language to filter by
in: query
name: language
type: string
- description: Editor to filter by
in: query
name: editor
type: string
- description: OS to filter by
in: query
name: operating_system
type: string
- description: Machine to filter by
in: query
name: machine
type: string
- description: Project label to filter by
in: query
name: label
type: string
produces:
- application/json
responses:
@ -583,6 +607,30 @@ paths:
in: query
name: end
type: string
- description: Project to filter by
in: query
name: project
type: string
- description: Language to filter by
in: query
name: language
type: string
- description: Editor to filter by
in: query
name: editor
type: string
- description: OS to filter by
in: query
name: operating_system
type: string
- description: Machine to filter by
in: query
name: machine
type: string
- description: Project label to filter by
in: query
name: label
type: string
produces:
- application/json
responses:
@ -804,6 +852,30 @@ paths:
in: query
name: recompute
type: boolean
- description: Project to filter by
in: query
name: project
type: string
- description: Language to filter by
in: query
name: language
type: string
- description: Editor to filter by
in: query
name: editor
type: string
- description: OS to filter by
in: query
name: operating_system
type: string
- description: Machine to filter by
in: query
name: machine
type: string
- description: Project label to filter by
in: query
name: label
type: string
produces:
- application/json
responses: