Skip to content

Commit

Permalink
Merge pull request #1102 from cloud-barista/update-swagger-doc
Browse files Browse the repository at this point in the history
[Workflow] Update Swagger REST API doc
  • Loading branch information
seokho-son authored May 10, 2022
2 parents fa25285 + 84e7ece commit 349d440
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,66 @@ const docTemplate = `{
}
},
"/ns/{nsId}/network/mcis/{mcisId}": {
"put": {
"description": "Inject Cloud Information For Cloud Adaptive Network",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Infra service] MCIS Cloud Adaptive Network (for developer)"
],
"summary": "Inject Cloud Information For Cloud Adaptive Network",
"parameters": [
{
"type": "string",
"default": "ns01",
"description": "Namespace ID",
"name": "nsId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "mcis01",
"description": "MCIS ID",
"name": "mcisId",
"in": "path",
"required": true
},
{
"description": "Details for the network request body",
"name": "networkReq",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/mcis.NetworkReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.AgentInstallContentWrapper"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
},
"post": {
"description": "Configure Cloud Adaptive Network (cb-network agent) to MCIS",
"consumes": [
Expand Down
60 changes: 60 additions & 0 deletions src/api/rest/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2264,6 +2264,66 @@
}
},
"/ns/{nsId}/network/mcis/{mcisId}": {
"put": {
"description": "Inject Cloud Information For Cloud Adaptive Network",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Infra service] MCIS Cloud Adaptive Network (for developer)"
],
"summary": "Inject Cloud Information For Cloud Adaptive Network",
"parameters": [
{
"type": "string",
"default": "ns01",
"description": "Namespace ID",
"name": "nsId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "mcis01",
"description": "MCIS ID",
"name": "mcisId",
"in": "path",
"required": true
},
{
"description": "Details for the network request body",
"name": "networkReq",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/mcis.NetworkReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.AgentInstallContentWrapper"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
},
"post": {
"description": "Configure Cloud Adaptive Network (cb-network agent) to MCIS",
"consumes": [
Expand Down
41 changes: 41 additions & 0 deletions src/api/rest/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3437,6 +3437,47 @@ paths:
summary: Configure Cloud Adaptive Network (cb-network agent) to MCIS
tags:
- '[Infra service] MCIS Cloud Adaptive Network (for developer)'
put:
consumes:
- application/json
description: Inject Cloud Information For Cloud Adaptive Network
parameters:
- default: ns01
description: Namespace ID
in: path
name: nsId
required: true
type: string
- default: mcis01
description: MCIS ID
in: path
name: mcisId
required: true
type: string
- description: Details for the network request body
in: body
name: networkReq
required: true
schema:
$ref: '#/definitions/mcis.NetworkReq'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/mcis.AgentInstallContentWrapper'
"404":
description: Not Found
schema:
$ref: '#/definitions/common.SimpleMsg'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/common.SimpleMsg'
summary: Inject Cloud Information For Cloud Adaptive Network
tags:
- '[Infra service] MCIS Cloud Adaptive Network (for developer)'
/ns/{nsId}/policy/mcis:
delete:
consumes:
Expand Down

0 comments on commit 349d440

Please sign in to comment.