Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240418 dashboard path #397

Merged
merged 2 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 129 additions & 106 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3186,88 +3186,6 @@ const docTemplate = `{
}
},
"/organizations/{organizationId}/dashboards": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get dashboard",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Get dashboard",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardResponse"
}
}
}
}
},
"put": {
"security": [
{
"JWT": []
}
],
"description": "Update dashboard",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Update dashboard",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Request body to update dashboard",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.UpdateDashboardRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.CommonDashboardResponse"
}
}
}
},
"post": {
"security": [
{
Expand Down Expand Up @@ -3313,7 +3231,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/charts": {
"/organizations/{organizationId}/dashboards/widgets/charts": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3370,7 +3288,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/charts/{chartType}": {
"/organizations/{organizationId}/dashboards/widgets/charts/{chartType}": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3428,7 +3346,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-enforcement": {
"/organizations/{organizationId}/dashboards/widgets/policy-enforcement": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3465,7 +3383,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-statistics": {
"/organizations/{organizationId}/dashboards/widgets/policy-statistics": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3502,7 +3420,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-status": {
"/organizations/{organizationId}/dashboards/widgets/policy-status": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3539,7 +3457,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-update": {
"/organizations/{organizationId}/dashboards/widgets/policy-update": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3576,7 +3494,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-violation": {
"/organizations/{organizationId}/dashboards/widgets/policy-violation": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3627,7 +3545,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/policy-violation-log": {
"/organizations/{organizationId}/dashboards/widgets/policy-violation-log": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3664,7 +3582,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/resources": {
"/organizations/{organizationId}/dashboards/widgets/resources": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3701,7 +3619,7 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/stacks": {
"/organizations/{organizationId}/dashboards/widgets/stacks": {
"get": {
"security": [
{
Expand Down Expand Up @@ -3738,6 +3656,97 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/dashboards/{dashboardKey}": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get dashboard",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Get dashboard",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Dashboard Key",
"name": "dashboardKey",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetDashboardResponse"
}
}
}
}
},
"put": {
"security": [
{
"JWT": []
}
],
"description": "Update dashboard",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Update dashboard",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Request body to update dashboard",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.UpdateDashboardRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.CommonDashboardResponse"
}
}
}
}
},
"/organizations/{organizationId}/mandatory-policies": {
"get": {
"security": [
Expand Down Expand Up @@ -11391,20 +11400,14 @@ const docTemplate = `{
"github_com_openinfradev_tks-api_pkg_domain.CreateDashboardRequest": {
"type": "object",
"properties": {
"groupName": {
"type": "string"
},
"sizeX": {
"type": "integer"
},
"sizeY": {
"type": "integer"
},
"widgets": {
"contents": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.WidgetResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.DashboardContents"
}
},
"dashboardKey": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -12052,6 +12055,26 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardContents": {
"type": "object",
"properties": {
"groupName": {
"type": "string"
},
"sizeX": {
"type": "integer"
},
"sizeY": {
"type": "integer"
},
"widgets": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.WidgetResponse"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.DashboardPolicyStatus": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -15931,9 +15954,6 @@ const docTemplate = `{
"github_com_openinfradev_tks-api_pkg_domain.WidgetResponse": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"sizeX": {
"type": "integer"
},
Expand All @@ -15945,6 +15965,9 @@ const docTemplate = `{
},
"startY": {
"type": "integer"
},
"widgetKey": {
"type": "string"
}
}
},
Expand Down
Loading
Loading