Skip to content

Commit

Permalink
Merge pull request #292 from seungkyua/20240313_dashboard
Browse files Browse the repository at this point in the history
20240313 dashboard
  • Loading branch information
ktkfree authored Mar 21, 2024
2 parents 63e94e6 + ac48c44 commit 3394d3d
Show file tree
Hide file tree
Showing 14 changed files with 980 additions and 7 deletions.
221 changes: 221 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3099,6 +3099,131 @@ 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": {
"$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": [
{
"JWT": []
}
],
"description": "Create new dashboard",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Dashboards"
],
"summary": "Create new dashboard",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Request body to create dashboard",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.CreateDashboardRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.CreateDashboardResponse"
}
}
}
}
},
"/organizations/{organizationId}/my-profile": {
"get": {
"security": [
Expand Down Expand Up @@ -7998,6 +8123,14 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.CommonDashboardResponse": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.CommonProjectResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -8277,6 +8410,34 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.CreateDashboardRequest": {
"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.CreateDashboardResponse": {
"type": "object",
"properties": {
"dashboardId": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.CreateOrganizationRequest": {
"type": "object",
"required": [
Expand Down Expand Up @@ -9139,6 +9300,26 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetDashboardResponse": {
"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.GetDashboardStacksResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11112,6 +11293,26 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.UpdateDashboardRequest": {
"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.UpdateMyProfileRequest": {
"type": "object",
"required": [
Expand Down Expand Up @@ -11573,6 +11774,26 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.WidgetResponse": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"sizeX": {
"type": "integer"
},
"sizeY": {
"type": "integer"
},
"startX": {
"type": "integer"
},
"startY": {
"type": "integer"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain_admin.GetUserResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 3394d3d

Please sign in to comment.