add new '/sparklines' endpoint (#823); organization endpoints

This commit is contained in:
Michael Quigley
2025-01-10 13:41:24 -05:00
parent 272cc87797
commit 0294827f5c
56 changed files with 2951 additions and 20 deletions

View File

@ -1490,6 +1490,65 @@ func init() {
}
}
},
"/sparklines": {
"post": {
"security": [
{
"key": []
}
],
"tags": [
"metadata"
],
"operationId": "getSparklines",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"properties": {
"account": {
"type": "boolean"
},
"environments": {
"type": "array",
"items": {
"type": "string"
}
},
"shares": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
],
"responses": {
"200": {
"description": "sparklines data",
"schema": {
"properties": {
"sparklines": {
"type": "array",
"items": {
"$ref": "#/definitions/metrics"
}
}
}
}
},
"401": {
"description": "unauthorized"
},
"500": {
"description": "internal server error"
}
}
}
},
"/unaccess": {
"delete": {
"security": [
@ -3709,6 +3768,65 @@ func init() {
}
}
},
"/sparklines": {
"post": {
"security": [
{
"key": []
}
],
"tags": [
"metadata"
],
"operationId": "getSparklines",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"properties": {
"account": {
"type": "boolean"
},
"environments": {
"type": "array",
"items": {
"type": "string"
}
},
"shares": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
],
"responses": {
"200": {
"description": "sparklines data",
"schema": {
"properties": {
"sparklines": {
"type": "array",
"items": {
"$ref": "#/definitions/metrics"
}
}
}
}
},
"401": {
"description": "unauthorized"
},
"500": {
"description": "internal server error"
}
}
}
},
"/unaccess": {
"delete": {
"security": [