2020-05-01 12:44:55 +03:00
|
|
|
{
|
|
|
|
"get": {
|
|
|
|
"operationId": "getGlobalVisits",
|
|
|
|
"tags": [
|
|
|
|
"Visits"
|
|
|
|
],
|
|
|
|
"summary": "Get general visits stats",
|
|
|
|
"description": "Get general visits stats not linked to one specific short URL.",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"$ref": "../parameters/version.json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKey": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "Visits stats.",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"visits": {
|
|
|
|
"$ref": "../definitions/VisitStats.json"
|
|
|
|
}
|
|
|
|
}
|
2021-12-09 17:27:18 +03:00
|
|
|
},
|
|
|
|
"example": {
|
|
|
|
"visits": {
|
|
|
|
"visitsCount": 1569874,
|
|
|
|
"orphanVisitsCount": 71345
|
|
|
|
}
|
2020-05-01 12:44:55 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-12-09 20:28:47 +03:00
|
|
|
"default": {
|
2020-05-01 12:44:55 +03:00
|
|
|
"description": "Unexpected error.",
|
|
|
|
"content": {
|
|
|
|
"application/problem+json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|