Skip to content

Commit fa51686

Browse files
authored
Update swagger API doc (#52)
... to add the newly added parameters. Signed-off-by: Fangchi Wang <wfangchi@vmware.com>
1 parent 279699d commit fa51686

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

server/api/federation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ func (controller *FederationController) deleteFATEExchange(c *gin.Context) {
494494
// @Param enable_persistence query bool true "choose if use the persistent volume"
495495
// @Param storage_class query string true "provide the name of StorageClass"
496496
// @Param enable_psp query bool true "choose if enable the podSecurityPolicy"
497+
// @Param fateflow_gpu_num query int true "number of gpu to assign to fateflow pod, default 0"
497498
// @Success 200 {object} GeneralResponse{data=string} "Success, the data field is the yaml content"
498499
// @Failure 401 {object} GeneralResponse "Unauthorized operation"
499500
// @Failure 500 {object} GeneralResponse{code=int} "Internal server error"

server/docs/docs.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,13 @@ const docTemplate = `{
16431643
"name": "enable_psp",
16441644
"in": "query",
16451645
"required": true
1646+
},
1647+
{
1648+
"type": "integer",
1649+
"description": "number of gpu to assign to fateflow pod, default 0",
1650+
"name": "fateflow_gpu_num",
1651+
"in": "query",
1652+
"required": true
16461653
}
16471654
],
16481655
"responses": {
@@ -5098,6 +5105,9 @@ const docTemplate = `{
50985105
"externalSpark": {
50995106
"$ref": "#/definitions/service.ExternalSpark"
51005107
},
5108+
"fateflow_gpu_num": {
5109+
"type": "integer"
5110+
},
51015111
"federation_uuid": {
51025112
"type": "string"
51035113
},
@@ -5359,6 +5369,9 @@ const docTemplate = `{
53595369
"labels": {
53605370
"$ref": "#/definitions/valueobject.Labels"
53615371
},
5372+
"less_privileged": {
5373+
"type": "boolean"
5374+
},
53625375
"name": {
53635376
"description": "optional",
53645377
"type": "string"

server/docs/swagger.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,13 @@
16351635
"name": "enable_psp",
16361636
"in": "query",
16371637
"required": true
1638+
},
1639+
{
1640+
"type": "integer",
1641+
"description": "number of gpu to assign to fateflow pod, default 0",
1642+
"name": "fateflow_gpu_num",
1643+
"in": "query",
1644+
"required": true
16381645
}
16391646
],
16401647
"responses": {
@@ -5090,6 +5097,9 @@
50905097
"externalSpark": {
50915098
"$ref": "#/definitions/service.ExternalSpark"
50925099
},
5100+
"fateflow_gpu_num": {
5101+
"type": "integer"
5102+
},
50935103
"federation_uuid": {
50945104
"type": "string"
50955105
},
@@ -5351,6 +5361,9 @@
53515361
"labels": {
53525362
"$ref": "#/definitions/valueobject.Labels"
53535363
},
5364+
"less_privileged": {
5365+
"type": "boolean"
5366+
},
53545367
"name": {
53555368
"description": "optional",
53565369
"type": "string"

server/docs/swagger.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ definitions:
700700
$ref: '#/definitions/service.ExternalPulsar'
701701
externalSpark:
702702
$ref: '#/definitions/service.ExternalSpark'
703+
fateflow_gpu_num:
704+
type: integer
703705
federation_uuid:
704706
type: string
705707
name:
@@ -876,6 +878,8 @@ definitions:
876878
type: string
877879
labels:
878880
$ref: '#/definitions/valueobject.Labels'
881+
less_privileged:
882+
type: boolean
879883
name:
880884
description: optional
881885
type: string
@@ -2427,6 +2431,11 @@ paths:
24272431
name: enable_psp
24282432
required: true
24292433
type: boolean
2434+
- description: number of gpu to assign to fateflow pod, default 0
2435+
in: query
2436+
name: fateflow_gpu_num
2437+
required: true
2438+
type: integer
24302439
produces:
24312440
- application/json
24322441
responses:

0 commit comments

Comments
 (0)