Skip to content

Commit 7b47c2e

Browse files
committed
docs(swagger): add params
1 parent c10f05b commit 7b47c2e

File tree

1 file changed

+69
-11
lines changed

1 file changed

+69
-11
lines changed

api-docs.yml

Lines changed: 69 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ definitions:
525525
template_id:
526526
type: integer
527527
minimum: 1
528+
params:
529+
$ref: '#/definitions/TaskPrams'
528530

529531
IntegrationRequest:
530532
type: object
@@ -536,6 +538,8 @@ definitions:
536538
type: integer
537539
template_id:
538540
type: integer
541+
params:
542+
$ref: '#/definitions/TaskPrams'
539543

540544
IntegrationExtractValueRequest:
541545
type: object
@@ -651,6 +655,7 @@ definitions:
651655
example: master
652656
ssh_key_id:
653657
type: integer
658+
654659
Repository:
655660
type: object
656661
properties:
@@ -686,23 +691,72 @@ definitions:
686691
type: string
687692
secret:
688693
type: string
694+
arguments:
695+
type: string
689696
git_branch:
690697
type: string
691-
limit:
698+
message:
692699
type: string
700+
inventory_id:
701+
type: integer
693702
params:
694-
type: object
695-
properties:
696-
debug:
697-
type: boolean
698-
dry_run:
699-
type: boolean
700-
diff:
701-
type: boolean
702-
limit:
703-
type: array
703+
allOf:
704+
- $ref: '#/definitions/AnsibleTaskParams'
705+
- $ref: '#/definitions/TerraformTaskParams'
706+
limit:
707+
type: string
708+
709+
AnsibleTaskParams:
710+
type: object
711+
properties:
712+
debug:
713+
type: boolean
714+
dry_run:
715+
type: boolean
716+
diff:
717+
type: boolean
718+
limit:
719+
type: array
720+
items:
721+
type: string
722+
tags:
723+
type: array
724+
items:
725+
type: string
726+
skip_tags:
727+
type: array
728+
items:
729+
type: string
730+
731+
TerraformTaskParams:
732+
type: object
733+
properties:
734+
plan:
735+
type: boolean
736+
destroy:
737+
type: boolean
738+
auto_approve:
739+
type: boolean
740+
upgrade:
741+
type: boolean
742+
743+
TaskPrams:
744+
type: object
745+
properties:
746+
environment:
747+
type: string
748+
git_branch:
749+
type: string
704750
message:
705751
type: string
752+
inventory_id:
753+
type: integer
754+
arguments:
755+
type: string
756+
params:
757+
allOf:
758+
- $ref: '#/definitions/AnsibleTaskParams'
759+
- $ref: '#/definitions/TerraformTaskParams'
706760

707761
TaskOutput:
708762
type: object
@@ -904,6 +958,8 @@ definitions:
904958
type: string
905959
active:
906960
type: boolean
961+
params:
962+
$ref: '#/definitions/TaskPrams'
907963

908964
Schedule:
909965
type: object
@@ -920,6 +976,8 @@ definitions:
920976
type: string
921977
active:
922978
type: boolean
979+
params:
980+
$ref: '#/definitions/TaskPrams'
923981

924982
ViewRequest:
925983
type: object

0 commit comments

Comments
 (0)