Skip to content

Commit

Permalink
Add list MCIS simple option (#731)
Browse files Browse the repository at this point in the history
* Add list MCIS simple option

* Update API for list MCIS simple

* Staging v0.4.7

* Remove redandent variables
  • Loading branch information
jihoon-seo authored Sep 13, 2021
2 parents ef56531 + 09eb50a commit 640988d
Show file tree
Hide file tree
Showing 6 changed files with 4,319 additions and 46 deletions.
21 changes: 20 additions & 1 deletion src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,9 @@ var doc = `{
},
{
"enum": [
"id"
"id",
"simple",
"status"
],
"type": "string",
"description": "Option",
Expand All @@ -1291,6 +1293,12 @@ var doc = `{
},
"[ID]": {
"$ref": "#/definitions/common.IdList"
},
"[SIMPLE]": {
"$ref": "#/definitions/mcis.RestGetAllMcisResponse"
},
"[STATUS]": {
"$ref": "#/definitions/mcis.RestGetAllMcisStatusResponse"
}
}
}
Expand Down Expand Up @@ -5696,6 +5704,17 @@ var doc = `{
}
}
},
"mcis.RestGetAllMcisStatusResponse": {
"type": "object",
"properties": {
"mcis": {
"type": "array",
"items": {
"$ref": "#/definitions/mcis.McisStatusInfo"
}
}
}
},
"mcis.RestGetBenchmarkRequest": {
"type": "object",
"properties": {
Expand Down
21 changes: 20 additions & 1 deletion src/api/rest/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,9 @@
},
{
"enum": [
"id"
"id",
"simple",
"status"
],
"type": "string",
"description": "Option",
Expand All @@ -1276,6 +1278,12 @@
},
"[ID]": {
"$ref": "#/definitions/common.IdList"
},
"[SIMPLE]": {
"$ref": "#/definitions/mcis.RestGetAllMcisResponse"
},
"[STATUS]": {
"$ref": "#/definitions/mcis.RestGetAllMcisStatusResponse"
}
}
}
Expand Down Expand Up @@ -5681,6 +5689,17 @@
}
}
},
"mcis.RestGetAllMcisStatusResponse": {
"type": "object",
"properties": {
"mcis": {
"type": "array",
"items": {
"$ref": "#/definitions/mcis.McisStatusInfo"
}
}
}
},
"mcis.RestGetBenchmarkRequest": {
"type": "object",
"properties": {
Expand Down
13 changes: 13 additions & 0 deletions src/api/rest/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,13 @@ definitions:
$ref: '#/definitions/mcis.TbMcisInfo'
type: array
type: object
mcis.RestGetAllMcisStatusResponse:
properties:
mcis:
items:
$ref: '#/definitions/mcis.McisStatusInfo'
type: array
type: object
mcis.RestGetBenchmarkRequest:
properties:
host:
Expand Down Expand Up @@ -2321,6 +2328,8 @@ paths:
- description: Option
enum:
- id
- simple
- status
in: query
name: option
type: string
Expand All @@ -2337,6 +2346,10 @@ paths:
$ref: '#/definitions/mcis.RestGetAllMcisResponse'
'[ID]':
$ref: '#/definitions/common.IdList'
'[SIMPLE]':
$ref: '#/definitions/mcis.RestGetAllMcisResponse'
'[STATUS]':
$ref: '#/definitions/mcis.RestGetAllMcisStatusResponse'
type: object
"404":
description: Not Found
Expand Down
Loading

0 comments on commit 640988d

Please sign in to comment.