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

Add list MCIS simple option #731

Merged
merged 4 commits into from
Sep 13, 2021
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
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