cornflow 1.1.1a1__py3-none-any.whl → 1.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. cornflow/app.py +0 -4
  2. cornflow/cli/utils.py +1 -1
  3. cornflow/config.py +2 -10
  4. cornflow/endpoints/__init__.py +0 -14
  5. cornflow/endpoints/execution.py +1 -1
  6. cornflow/endpoints/login.py +1 -8
  7. cornflow/models/__init__.py +0 -2
  8. cornflow/models/execution.py +0 -8
  9. cornflow/models/meta_models.py +12 -23
  10. cornflow/schemas/execution.py +0 -3
  11. cornflow/shared/const.py +0 -21
  12. cornflow/shared/exceptions.py +9 -20
  13. cornflow/tests/const.py +0 -7
  14. cornflow/tests/{custom_live_server.py → custom_liveServer.py} +1 -3
  15. cornflow/tests/custom_test_case.py +3 -2
  16. cornflow/tests/integration/test_commands.py +1 -1
  17. cornflow/tests/integration/test_cornflowclient.py +28 -116
  18. cornflow/tests/unit/test_alarms.py +9 -22
  19. cornflow/tests/unit/test_cli.py +5 -10
  20. cornflow/tests/unit/test_commands.py +2 -6
  21. cornflow/tests/unit/test_executions.py +0 -5
  22. cornflow/tests/unit/test_main_alarms.py +0 -8
  23. cornflow/tests/unit/test_users.py +2 -5
  24. {cornflow-1.1.1a1.dist-info → cornflow-1.1.4.dist-info}/METADATA +7 -7
  25. {cornflow-1.1.1a1.dist-info → cornflow-1.1.4.dist-info}/RECORD +28 -35
  26. {cornflow-1.1.1a1.dist-info → cornflow-1.1.4.dist-info}/WHEEL +1 -1
  27. cornflow/endpoints/reports.py +0 -283
  28. cornflow/migrations/versions/83164be03c23_.py +0 -40
  29. cornflow/migrations/versions/96f00d0961d1_reports_table.py +0 -50
  30. cornflow/models/reports.py +0 -119
  31. cornflow/schemas/reports.py +0 -48
  32. cornflow/static/v1.json +0 -3854
  33. cornflow/tests/unit/test_reports.py +0 -308
  34. {cornflow-1.1.1a1.dist-info → cornflow-1.1.4.dist-info}/entry_points.txt +0 -0
  35. {cornflow-1.1.1a1.dist-info → cornflow-1.1.4.dist-info}/top_level.txt +0 -0
cornflow/static/v1.json DELETED
@@ -1,3854 +0,0 @@
1
- {
2
- "paths": {
3
- "/instance/": {
4
- "get": {
5
- "parameters": [
6
- {
7
- "in": "query",
8
- "name": "limit",
9
- "type": "integer",
10
- "required": false
11
- },
12
- {
13
- "in": "query",
14
- "name": "offset",
15
- "type": "integer",
16
- "required": false
17
- },
18
- {
19
- "in": "query",
20
- "name": "creation_date_gte",
21
- "type": "string",
22
- "format": "date-time",
23
- "required": false
24
- },
25
- {
26
- "in": "query",
27
- "name": "creation_date_lte",
28
- "type": "string",
29
- "format": "date-time",
30
- "required": false
31
- },
32
- {
33
- "in": "query",
34
- "name": "id",
35
- "type": "string",
36
- "required": false
37
- },
38
- {
39
- "in": "query",
40
- "name": "name",
41
- "type": "string",
42
- "required": false
43
- },
44
- {
45
- "in": "query",
46
- "name": "deletion_date_gte",
47
- "type": "string",
48
- "format": "date-time",
49
- "required": false
50
- },
51
- {
52
- "in": "query",
53
- "name": "deletion_date_lte",
54
- "type": "string",
55
- "format": "date-time",
56
- "required": false
57
- },
58
- {
59
- "in": "query",
60
- "name": "update_date_gte",
61
- "type": "string",
62
- "format": "date-time",
63
- "required": false
64
- },
65
- {
66
- "in": "query",
67
- "name": "update_date_lte",
68
- "type": "string",
69
- "format": "date-time",
70
- "required": false
71
- },
72
- {
73
- "in": "query",
74
- "name": "user_name",
75
- "type": "string",
76
- "required": false
77
- },
78
- {
79
- "in": "query",
80
- "name": "last_name",
81
- "type": "string",
82
- "required": false
83
- },
84
- {
85
- "in": "query",
86
- "name": "email",
87
- "type": "string",
88
- "required": false
89
- },
90
- {
91
- "in": "query",
92
- "name": "role_id",
93
- "type": "integer",
94
- "required": false
95
- },
96
- {
97
- "in": "query",
98
- "name": "url_rule",
99
- "type": "string",
100
- "required": false
101
- },
102
- {
103
- "in": "query",
104
- "name": "description",
105
- "type": "string",
106
- "required": false
107
- },
108
- {
109
- "in": "query",
110
- "name": "schema",
111
- "type": "string",
112
- "required": false
113
- }
114
- ],
115
- "responses": {
116
- "default": {
117
- "schema": {
118
- "type": "array",
119
- "items": {
120
- "$ref": "#/definitions/InstanceEndpointResponse"
121
- }
122
- },
123
- "description": ""
124
- }
125
- },
126
- "description": "Get all instances",
127
- "tags": [
128
- "Instances"
129
- ]
130
- },
131
- "post": {
132
- "parameters": [],
133
- "responses": {},
134
- "description": "Create an instance",
135
- "tags": [
136
- "Instances"
137
- ]
138
- }
139
- },
140
- "/instance/{idx}/": {
141
- "get": {
142
- "parameters": [
143
- {
144
- "in": "path",
145
- "name": "idx",
146
- "required": true,
147
- "type": "string"
148
- }
149
- ],
150
- "responses": {
151
- "default": {
152
- "schema": {
153
- "$ref": "#/definitions/InstanceDetailsEndpointResponse"
154
- },
155
- "description": ""
156
- }
157
- },
158
- "description": "Get one instance",
159
- "tags": [
160
- "Instances"
161
- ]
162
- },
163
- "put": {
164
- "parameters": [
165
- {
166
- "in": "body",
167
- "required": false,
168
- "name": "body",
169
- "schema": {
170
- "$ref": "#/definitions/InstanceEditRequest"
171
- }
172
- },
173
- {
174
- "in": "path",
175
- "name": "idx",
176
- "required": true,
177
- "type": "string"
178
- }
179
- ],
180
- "responses": {},
181
- "description": "Edit an instance",
182
- "tags": [
183
- "Instances"
184
- ]
185
- },
186
- "delete": {
187
- "parameters": [
188
- {
189
- "in": "path",
190
- "name": "idx",
191
- "required": true,
192
- "type": "string"
193
- }
194
- ],
195
- "responses": {},
196
- "description": "Delete an instance",
197
- "tags": [
198
- "Instances"
199
- ]
200
- }
201
- },
202
- "/instance/{idx}/data/": {
203
- "get": {
204
- "parameters": [
205
- {
206
- "in": "path",
207
- "name": "idx",
208
- "required": true,
209
- "type": "string"
210
- }
211
- ],
212
- "responses": {
213
- "default": {
214
- "schema": {
215
- "$ref": "#/definitions/InstanceDataEndpointResponse"
216
- },
217
- "description": ""
218
- }
219
- },
220
- "description": "Get input data of an instance",
221
- "tags": [
222
- "Instances"
223
- ]
224
- }
225
- },
226
- "/instancefile/": {
227
- "post": {
228
- "parameters": [
229
- {
230
- "in": "formData",
231
- "name": "name",
232
- "type": "string",
233
- "required": true
234
- },
235
- {
236
- "in": "formData",
237
- "name": "description",
238
- "type": "string",
239
- "required": false
240
- },
241
- {
242
- "in": "formData",
243
- "name": "minimize",
244
- "type": "boolean",
245
- "required": false
246
- }
247
- ],
248
- "responses": {
249
- "default": {
250
- "schema": {
251
- "$ref": "#/definitions/InstanceDetailsEndpointResponse"
252
- },
253
- "description": ""
254
- }
255
- },
256
- "description": "Create an instance from an mps file",
257
- "tags": [
258
- "Instances"
259
- ]
260
- }
261
- },
262
- "/data-check/execution/{idx}/": {
263
- "post": {
264
- "parameters": [
265
- {
266
- "in": "path",
267
- "name": "idx",
268
- "required": true,
269
- "type": "string"
270
- }
271
- ],
272
- "responses": {
273
- "default": {
274
- "schema": {
275
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
276
- },
277
- "description": ""
278
- }
279
- },
280
- "description": "Create a data check execution",
281
- "tags": [
282
- "Data checks"
283
- ]
284
- }
285
- },
286
- "/data-check/instance/{idx}/": {
287
- "post": {
288
- "parameters": [
289
- {
290
- "in": "path",
291
- "name": "idx",
292
- "required": true,
293
- "type": "string"
294
- }
295
- ],
296
- "responses": {
297
- "default": {
298
- "schema": {
299
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
300
- },
301
- "description": ""
302
- }
303
- },
304
- "description": "Create a data check execution for an existing instance",
305
- "tags": [
306
- "Data checks"
307
- ]
308
- }
309
- },
310
- "/data-check/case/{idx}/": {
311
- "post": {
312
- "parameters": [
313
- {
314
- "in": "path",
315
- "name": "idx",
316
- "required": true,
317
- "type": "integer",
318
- "format": "int32"
319
- }
320
- ],
321
- "responses": {
322
- "default": {
323
- "schema": {
324
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
325
- },
326
- "description": ""
327
- }
328
- },
329
- "description": "Create a data check execution for an existing case",
330
- "tags": [
331
- "Data checks"
332
- ]
333
- }
334
- },
335
- "/execution/{idx}/": {
336
- "get": {
337
- "parameters": [
338
- {
339
- "in": "path",
340
- "name": "idx",
341
- "required": true,
342
- "type": "string"
343
- }
344
- ],
345
- "responses": {
346
- "default": {
347
- "schema": {
348
- "$ref": "#/definitions/ExecutionDetailsEndpointWithIndicatorsResponse"
349
- },
350
- "description": ""
351
- }
352
- },
353
- "description": "Get details of an execution",
354
- "tags": [
355
- "Executions"
356
- ]
357
- },
358
- "put": {
359
- "parameters": [
360
- {
361
- "in": "body",
362
- "required": false,
363
- "name": "body",
364
- "schema": {
365
- "$ref": "#/definitions/ExecutionEditRequest"
366
- }
367
- },
368
- {
369
- "in": "path",
370
- "name": "idx",
371
- "required": true,
372
- "type": "string"
373
- }
374
- ],
375
- "responses": {},
376
- "description": "Edit an execution",
377
- "tags": [
378
- "Executions"
379
- ]
380
- },
381
- "post": {
382
- "parameters": [
383
- {
384
- "in": "path",
385
- "name": "idx",
386
- "required": true,
387
- "type": "string"
388
- }
389
- ],
390
- "responses": {},
391
- "description": "Stop an execution",
392
- "tags": [
393
- "Executions"
394
- ]
395
- },
396
- "delete": {
397
- "parameters": [
398
- {
399
- "in": "path",
400
- "name": "idx",
401
- "required": true,
402
- "type": "string"
403
- }
404
- ],
405
- "responses": {},
406
- "description": "Delete an execution",
407
- "tags": [
408
- "Executions"
409
- ]
410
- }
411
- },
412
- "/execution/{idx}/status/": {
413
- "put": {
414
- "parameters": [
415
- {
416
- "in": "body",
417
- "required": false,
418
- "name": "body",
419
- "schema": {
420
- "$ref": "#/definitions/ExecutionStatusEndpointUpdate"
421
- }
422
- },
423
- {
424
- "in": "path",
425
- "name": "idx",
426
- "required": true,
427
- "type": "string"
428
- }
429
- ],
430
- "responses": {},
431
- "description": "Change status of an execution",
432
- "tags": [
433
- "Executions"
434
- ]
435
- },
436
- "get": {
437
- "parameters": [
438
- {
439
- "in": "path",
440
- "name": "idx",
441
- "required": true,
442
- "type": "string"
443
- }
444
- ],
445
- "responses": {
446
- "default": {
447
- "schema": {
448
- "$ref": "#/definitions/ExecutionStatusEndpointResponse"
449
- },
450
- "description": ""
451
- }
452
- },
453
- "description": "Get status of an execution",
454
- "tags": [
455
- "Executions"
456
- ]
457
- }
458
- },
459
- "/execution/{idx}/data/": {
460
- "get": {
461
- "parameters": [
462
- {
463
- "in": "path",
464
- "name": "idx",
465
- "required": true,
466
- "type": "string"
467
- }
468
- ],
469
- "responses": {
470
- "default": {
471
- "schema": {
472
- "$ref": "#/definitions/ExecutionDataEndpointResponse"
473
- },
474
- "description": ""
475
- }
476
- },
477
- "description": "Get solution data of an execution",
478
- "tags": [
479
- "Executions"
480
- ]
481
- }
482
- },
483
- "/execution/{idx}/log/": {
484
- "get": {
485
- "parameters": [
486
- {
487
- "in": "path",
488
- "name": "idx",
489
- "required": true,
490
- "type": "string"
491
- }
492
- ],
493
- "responses": {
494
- "default": {
495
- "schema": {
496
- "$ref": "#/definitions/ExecutionLogEndpointResponse"
497
- },
498
- "description": ""
499
- }
500
- },
501
- "description": "Get log of an execution",
502
- "tags": [
503
- "Executions"
504
- ]
505
- }
506
- },
507
- "/execution/{idx}/relaunch/": {
508
- "post": {
509
- "parameters": [
510
- {
511
- "in": "body",
512
- "required": false,
513
- "name": "body",
514
- "schema": {
515
- "$ref": "#/definitions/ReLaunchExecutionRequest"
516
- }
517
- },
518
- {
519
- "in": "path",
520
- "name": "idx",
521
- "required": true,
522
- "type": "string"
523
- }
524
- ],
525
- "responses": {},
526
- "description": "Re-launch an execution",
527
- "tags": [
528
- "Executions"
529
- ]
530
- }
531
- },
532
- "/execution/": {
533
- "get": {
534
- "parameters": [
535
- {
536
- "in": "query",
537
- "name": "limit",
538
- "type": "integer",
539
- "required": false
540
- },
541
- {
542
- "in": "query",
543
- "name": "offset",
544
- "type": "integer",
545
- "required": false
546
- },
547
- {
548
- "in": "query",
549
- "name": "creation_date_gte",
550
- "type": "string",
551
- "format": "date-time",
552
- "required": false
553
- },
554
- {
555
- "in": "query",
556
- "name": "creation_date_lte",
557
- "type": "string",
558
- "format": "date-time",
559
- "required": false
560
- },
561
- {
562
- "in": "query",
563
- "name": "id",
564
- "type": "string",
565
- "required": false
566
- },
567
- {
568
- "in": "query",
569
- "name": "name",
570
- "type": "string",
571
- "required": false
572
- },
573
- {
574
- "in": "query",
575
- "name": "deletion_date_gte",
576
- "type": "string",
577
- "format": "date-time",
578
- "required": false
579
- },
580
- {
581
- "in": "query",
582
- "name": "deletion_date_lte",
583
- "type": "string",
584
- "format": "date-time",
585
- "required": false
586
- },
587
- {
588
- "in": "query",
589
- "name": "update_date_gte",
590
- "type": "string",
591
- "format": "date-time",
592
- "required": false
593
- },
594
- {
595
- "in": "query",
596
- "name": "update_date_lte",
597
- "type": "string",
598
- "format": "date-time",
599
- "required": false
600
- },
601
- {
602
- "in": "query",
603
- "name": "user_name",
604
- "type": "string",
605
- "required": false
606
- },
607
- {
608
- "in": "query",
609
- "name": "last_name",
610
- "type": "string",
611
- "required": false
612
- },
613
- {
614
- "in": "query",
615
- "name": "email",
616
- "type": "string",
617
- "required": false
618
- },
619
- {
620
- "in": "query",
621
- "name": "role_id",
622
- "type": "integer",
623
- "required": false
624
- },
625
- {
626
- "in": "query",
627
- "name": "url_rule",
628
- "type": "string",
629
- "required": false
630
- },
631
- {
632
- "in": "query",
633
- "name": "description",
634
- "type": "string",
635
- "required": false
636
- },
637
- {
638
- "in": "query",
639
- "name": "schema",
640
- "type": "string",
641
- "required": false
642
- }
643
- ],
644
- "responses": {
645
- "default": {
646
- "schema": {
647
- "type": "array",
648
- "items": {
649
- "$ref": "#/definitions/ExecutionDetailsWithIndicatorsAndLogResponse"
650
- }
651
- },
652
- "description": ""
653
- }
654
- },
655
- "description": "Get all executions",
656
- "tags": [
657
- "Executions"
658
- ]
659
- },
660
- "post": {
661
- "parameters": [
662
- {
663
- "in": "body",
664
- "required": false,
665
- "name": "body",
666
- "schema": {
667
- "$ref": "#/definitions/ExecutionRequest"
668
- }
669
- }
670
- ],
671
- "responses": {
672
- "default": {
673
- "schema": {
674
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
675
- },
676
- "description": ""
677
- }
678
- },
679
- "description": "Create an execution",
680
- "tags": [
681
- "Executions"
682
- ]
683
- }
684
- },
685
- "/dag/{idx}/": {
686
- "put": {
687
- "parameters": [
688
- {
689
- "in": "body",
690
- "required": false,
691
- "name": "body",
692
- "schema": {
693
- "$ref": "#/definitions/ExecutionDagRequest"
694
- }
695
- },
696
- {
697
- "in": "path",
698
- "name": "idx",
699
- "required": true,
700
- "type": "string"
701
- }
702
- ],
703
- "responses": {},
704
- "description": "Edit an execution",
705
- "tags": [
706
- "DAGs"
707
- ]
708
- },
709
- "get": {
710
- "parameters": [
711
- {
712
- "in": "path",
713
- "name": "idx",
714
- "required": true,
715
- "type": "string"
716
- }
717
- ],
718
- "responses": {},
719
- "description": "Get input data and configuration for an execution",
720
- "tags": [
721
- "DAGs"
722
- ]
723
- }
724
- },
725
- "/dag/": {
726
- "post": {
727
- "parameters": [
728
- {
729
- "in": "body",
730
- "required": false,
731
- "name": "body",
732
- "schema": {
733
- "$ref": "#/definitions/ExecutionDagPostRequest"
734
- }
735
- }
736
- ],
737
- "responses": {
738
- "default": {
739
- "schema": {
740
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
741
- },
742
- "description": ""
743
- }
744
- },
745
- "description": "Create an execution manually.",
746
- "tags": [
747
- "DAGs"
748
- ]
749
- }
750
- },
751
- "/dag/instance/{idx}/": {
752
- "put": {
753
- "parameters": [
754
- {
755
- "in": "body",
756
- "required": false,
757
- "name": "body",
758
- "schema": {
759
- "$ref": "#/definitions/InstanceCheckRequest"
760
- }
761
- },
762
- {
763
- "in": "path",
764
- "name": "idx",
765
- "required": true,
766
- "type": "string"
767
- }
768
- ],
769
- "responses": {},
770
- "description": "Endpoint to save instance checks performed on the DAG",
771
- "tags": [
772
- "DAGs"
773
- ]
774
- }
775
- },
776
- "/dag/case/{idx}/": {
777
- "put": {
778
- "parameters": [
779
- {
780
- "in": "body",
781
- "required": false,
782
- "name": "body",
783
- "schema": {
784
- "$ref": "#/definitions/CaseCheckRequest"
785
- }
786
- },
787
- {
788
- "in": "path",
789
- "name": "idx",
790
- "required": true,
791
- "type": "integer",
792
- "format": "int32"
793
- }
794
- ],
795
- "responses": {},
796
- "description": "Endpoint to save case checks performed on the DAG",
797
- "tags": [
798
- "DAGs"
799
- ]
800
- }
801
- },
802
- "/dag/deployed/": {
803
- "get": {
804
- "parameters": [],
805
- "responses": {
806
- "default": {
807
- "schema": {
808
- "type": "array",
809
- "items": {
810
- "$ref": "#/definitions/DeployedDAG"
811
- }
812
- },
813
- "description": ""
814
- }
815
- },
816
- "description": "Get list of deployed dags registered on the data base",
817
- "tags": [
818
- "DeployedDAGs"
819
- ]
820
- },
821
- "post": {
822
- "parameters": [
823
- {
824
- "in": "body",
825
- "required": false,
826
- "name": "body",
827
- "schema": {
828
- "$ref": "#/definitions/DeployedDAG"
829
- }
830
- }
831
- ],
832
- "responses": {
833
- "default": {
834
- "schema": {
835
- "$ref": "#/definitions/DeployedDAG"
836
- },
837
- "description": ""
838
- }
839
- },
840
- "description": "Post a new deployed dag",
841
- "tags": [
842
- "DeployedDAGs"
843
- ]
844
- }
845
- },
846
- "/dag/deployed/{idx}/": {
847
- "put": {
848
- "parameters": [
849
- {
850
- "in": "body",
851
- "required": false,
852
- "name": "body",
853
- "schema": {
854
- "$ref": "#/definitions/DeployedDAGEdit"
855
- }
856
- },
857
- {
858
- "in": "path",
859
- "name": "idx",
860
- "required": true,
861
- "type": "string"
862
- }
863
- ],
864
- "responses": {},
865
- "description": "Endpoint to update the schemas of a deployed DAG",
866
- "tags": [
867
- "DAGs"
868
- ]
869
- }
870
- },
871
- "/user/": {
872
- "get": {
873
- "parameters": [],
874
- "responses": {
875
- "default": {
876
- "schema": {
877
- "type": "array",
878
- "items": {
879
- "$ref": "#/definitions/UserEndpointResponse"
880
- }
881
- },
882
- "description": ""
883
- }
884
- },
885
- "description": "Get all users",
886
- "tags": [
887
- "Users"
888
- ]
889
- }
890
- },
891
- "/user/{user_id}/": {
892
- "get": {
893
- "parameters": [
894
- {
895
- "in": "path",
896
- "name": "user_id",
897
- "required": true,
898
- "type": "integer",
899
- "format": "int32"
900
- }
901
- ],
902
- "responses": {
903
- "default": {
904
- "schema": {
905
- "$ref": "#/definitions/UserDetailsEndpointResponse"
906
- },
907
- "description": ""
908
- }
909
- },
910
- "description": "Get a user",
911
- "tags": [
912
- "Users"
913
- ]
914
- },
915
- "put": {
916
- "parameters": [
917
- {
918
- "in": "body",
919
- "required": false,
920
- "name": "body",
921
- "schema": {
922
- "$ref": "#/definitions/UserEditRequest"
923
- }
924
- },
925
- {
926
- "in": "path",
927
- "name": "user_id",
928
- "required": true,
929
- "type": "integer",
930
- "format": "int32"
931
- }
932
- ],
933
- "responses": {},
934
- "description": "Edit a user",
935
- "tags": [
936
- "Users"
937
- ]
938
- },
939
- "delete": {
940
- "parameters": [
941
- {
942
- "in": "path",
943
- "name": "user_id",
944
- "required": true,
945
- "type": "integer",
946
- "format": "int32"
947
- }
948
- ],
949
- "responses": {},
950
- "description": "Delete a user",
951
- "tags": [
952
- "Users"
953
- ]
954
- }
955
- },
956
- "/user/{user_id}/{make_admin}/": {
957
- "put": {
958
- "parameters": [
959
- {
960
- "in": "path",
961
- "name": "user_id",
962
- "required": true,
963
- "type": "integer",
964
- "format": "int32"
965
- },
966
- {
967
- "in": "path",
968
- "name": "make_admin",
969
- "required": true,
970
- "type": "integer",
971
- "format": "int32"
972
- }
973
- ],
974
- "responses": {
975
- "default": {
976
- "schema": {
977
- "$ref": "#/definitions/UserEndpointResponse"
978
- },
979
- "description": ""
980
- }
981
- },
982
- "description": "Toggle user into admin",
983
- "tags": [
984
- "Users"
985
- ]
986
- }
987
- },
988
- "/token/": {
989
- "get": {
990
- "parameters": [],
991
- "responses": {
992
- "default": {
993
- "schema": {
994
- "$ref": "#/definitions/TokenEndpointResponse"
995
- },
996
- "description": ""
997
- }
998
- },
999
- "description": "Check token",
1000
- "tags": [
1001
- "Users"
1002
- ]
1003
- }
1004
- },
1005
- "/schema/": {
1006
- "get": {
1007
- "parameters": [],
1008
- "responses": {
1009
- "default": {
1010
- "schema": {
1011
- "type": "array",
1012
- "items": {
1013
- "$ref": "#/definitions/SchemaListApp"
1014
- }
1015
- },
1016
- "description": ""
1017
- }
1018
- },
1019
- "description": "Get list of available apps",
1020
- "tags": [
1021
- "Schemas"
1022
- ]
1023
- }
1024
- },
1025
- "/schema/{dag_name}/": {
1026
- "get": {
1027
- "parameters": [
1028
- {
1029
- "in": "path",
1030
- "name": "dag_name",
1031
- "required": true,
1032
- "type": "string"
1033
- }
1034
- ],
1035
- "responses": {
1036
- "default": {
1037
- "schema": {
1038
- "$ref": "#/definitions/SchemaOneApp"
1039
- },
1040
- "description": ""
1041
- }
1042
- },
1043
- "description": "Get instance, solution and config schema",
1044
- "tags": [
1045
- "Schemas"
1046
- ]
1047
- }
1048
- },
1049
- "/example/{dag_name}/": {
1050
- "get": {
1051
- "parameters": [
1052
- {
1053
- "in": "path",
1054
- "name": "dag_name",
1055
- "required": true,
1056
- "type": "string"
1057
- }
1058
- ],
1059
- "responses": {
1060
- "default": {
1061
- "schema": {
1062
- "type": "array",
1063
- "items": {
1064
- "$ref": "#/definitions/ExampleListData"
1065
- }
1066
- },
1067
- "description": ""
1068
- }
1069
- },
1070
- "description": "Get lsit of example data from DAG",
1071
- "tags": [
1072
- "DAG"
1073
- ]
1074
- }
1075
- },
1076
- "/example/{dag_name}/{example_name}/": {
1077
- "get": {
1078
- "parameters": [
1079
- {
1080
- "in": "path",
1081
- "name": "dag_name",
1082
- "required": true,
1083
- "type": "string"
1084
- },
1085
- {
1086
- "in": "path",
1087
- "name": "example_name",
1088
- "required": true,
1089
- "type": "string"
1090
- }
1091
- ],
1092
- "responses": {
1093
- "default": {
1094
- "schema": {
1095
- "$ref": "#/definitions/ExampleDetailData"
1096
- },
1097
- "description": ""
1098
- }
1099
- },
1100
- "description": "Get example data from DAG",
1101
- "tags": [
1102
- "DAG"
1103
- ]
1104
- }
1105
- },
1106
- "/health/": {
1107
- "get": {
1108
- "parameters": [],
1109
- "responses": {
1110
- "default": {
1111
- "schema": {
1112
- "$ref": "#/definitions/HealthResponse"
1113
- },
1114
- "description": ""
1115
- }
1116
- },
1117
- "description": "Health check",
1118
- "tags": [
1119
- "Health"
1120
- ]
1121
- }
1122
- },
1123
- "/case/instance/": {
1124
- "post": {
1125
- "parameters": [
1126
- {
1127
- "in": "body",
1128
- "required": false,
1129
- "name": "body",
1130
- "schema": {
1131
- "$ref": "#/definitions/CaseFromInstanceExecution"
1132
- }
1133
- }
1134
- ],
1135
- "responses": {
1136
- "default": {
1137
- "schema": {
1138
- "$ref": "#/definitions/CaseListResponse"
1139
- },
1140
- "description": ""
1141
- }
1142
- },
1143
- "description": "Create a new case from instance and execution",
1144
- "tags": [
1145
- "Cases"
1146
- ]
1147
- }
1148
- },
1149
- "/case/{idx}/copy/": {
1150
- "post": {
1151
- "parameters": [
1152
- {
1153
- "in": "path",
1154
- "name": "idx",
1155
- "required": true,
1156
- "type": "integer",
1157
- "format": "int32"
1158
- }
1159
- ],
1160
- "responses": {
1161
- "default": {
1162
- "schema": {
1163
- "$ref": "#/definitions/CaseListResponse"
1164
- },
1165
- "description": ""
1166
- }
1167
- },
1168
- "description": "Copies a case to a new one",
1169
- "tags": [
1170
- "Cases"
1171
- ]
1172
- }
1173
- },
1174
- "/case/": {
1175
- "get": {
1176
- "parameters": [
1177
- {
1178
- "in": "query",
1179
- "name": "limit",
1180
- "type": "integer",
1181
- "required": false
1182
- },
1183
- {
1184
- "in": "query",
1185
- "name": "offset",
1186
- "type": "integer",
1187
- "required": false
1188
- },
1189
- {
1190
- "in": "query",
1191
- "name": "creation_date_gte",
1192
- "type": "string",
1193
- "format": "date-time",
1194
- "required": false
1195
- },
1196
- {
1197
- "in": "query",
1198
- "name": "creation_date_lte",
1199
- "type": "string",
1200
- "format": "date-time",
1201
- "required": false
1202
- },
1203
- {
1204
- "in": "query",
1205
- "name": "id",
1206
- "type": "string",
1207
- "required": false
1208
- },
1209
- {
1210
- "in": "query",
1211
- "name": "name",
1212
- "type": "string",
1213
- "required": false
1214
- },
1215
- {
1216
- "in": "query",
1217
- "name": "deletion_date_gte",
1218
- "type": "string",
1219
- "format": "date-time",
1220
- "required": false
1221
- },
1222
- {
1223
- "in": "query",
1224
- "name": "deletion_date_lte",
1225
- "type": "string",
1226
- "format": "date-time",
1227
- "required": false
1228
- },
1229
- {
1230
- "in": "query",
1231
- "name": "update_date_gte",
1232
- "type": "string",
1233
- "format": "date-time",
1234
- "required": false
1235
- },
1236
- {
1237
- "in": "query",
1238
- "name": "update_date_lte",
1239
- "type": "string",
1240
- "format": "date-time",
1241
- "required": false
1242
- },
1243
- {
1244
- "in": "query",
1245
- "name": "user_name",
1246
- "type": "string",
1247
- "required": false
1248
- },
1249
- {
1250
- "in": "query",
1251
- "name": "last_name",
1252
- "type": "string",
1253
- "required": false
1254
- },
1255
- {
1256
- "in": "query",
1257
- "name": "email",
1258
- "type": "string",
1259
- "required": false
1260
- },
1261
- {
1262
- "in": "query",
1263
- "name": "role_id",
1264
- "type": "integer",
1265
- "required": false
1266
- },
1267
- {
1268
- "in": "query",
1269
- "name": "url_rule",
1270
- "type": "string",
1271
- "required": false
1272
- },
1273
- {
1274
- "in": "query",
1275
- "name": "description",
1276
- "type": "string",
1277
- "required": false
1278
- },
1279
- {
1280
- "in": "query",
1281
- "name": "schema",
1282
- "type": "string",
1283
- "required": false
1284
- }
1285
- ],
1286
- "responses": {
1287
- "default": {
1288
- "schema": {
1289
- "type": "array",
1290
- "items": {
1291
- "$ref": "#/definitions/CaseListAllWithIndicators"
1292
- }
1293
- },
1294
- "description": ""
1295
- }
1296
- },
1297
- "description": "Get all cases",
1298
- "tags": [
1299
- "Cases"
1300
- ]
1301
- },
1302
- "post": {
1303
- "parameters": [],
1304
- "responses": {},
1305
- "description": "Create a new case from raw data",
1306
- "tags": [
1307
- "Cases"
1308
- ]
1309
- }
1310
- },
1311
- "/case/{idx}/": {
1312
- "get": {
1313
- "parameters": [
1314
- {
1315
- "in": "path",
1316
- "name": "idx",
1317
- "required": true,
1318
- "type": "integer",
1319
- "format": "int32"
1320
- }
1321
- ],
1322
- "responses": {
1323
- "default": {
1324
- "schema": {
1325
- "$ref": "#/definitions/CaseListAllWithIndicators"
1326
- },
1327
- "description": ""
1328
- }
1329
- },
1330
- "description": "Get one case",
1331
- "tags": [
1332
- "Cases"
1333
- ]
1334
- },
1335
- "put": {
1336
- "parameters": [
1337
- {
1338
- "in": "body",
1339
- "required": false,
1340
- "name": "body",
1341
- "schema": {
1342
- "$ref": "#/definitions/CaseEditRequest"
1343
- }
1344
- },
1345
- {
1346
- "in": "path",
1347
- "name": "idx",
1348
- "required": true,
1349
- "type": "integer",
1350
- "format": "int32"
1351
- }
1352
- ],
1353
- "responses": {},
1354
- "description": "Edit a case",
1355
- "tags": [
1356
- "Cases"
1357
- ]
1358
- },
1359
- "delete": {
1360
- "parameters": [
1361
- {
1362
- "in": "path",
1363
- "name": "idx",
1364
- "required": true,
1365
- "type": "integer",
1366
- "format": "int32"
1367
- }
1368
- ],
1369
- "responses": {},
1370
- "description": "Delete a case",
1371
- "tags": [
1372
- "Cases"
1373
- ]
1374
- }
1375
- },
1376
- "/case/{idx}/data/": {
1377
- "patch": {
1378
- "parameters": [
1379
- {
1380
- "in": "path",
1381
- "name": "idx",
1382
- "required": true,
1383
- "type": "integer",
1384
- "format": "int32"
1385
- }
1386
- ],
1387
- "responses": {},
1388
- "description": "Patches the data of a given case",
1389
- "tags": [
1390
- "Cases"
1391
- ]
1392
- },
1393
- "get": {
1394
- "parameters": [
1395
- {
1396
- "in": "path",
1397
- "name": "idx",
1398
- "required": true,
1399
- "type": "integer",
1400
- "format": "int32"
1401
- }
1402
- ],
1403
- "responses": {
1404
- "default": {
1405
- "schema": {
1406
- "$ref": "#/definitions/CaseBase"
1407
- },
1408
- "description": ""
1409
- }
1410
- },
1411
- "description": "Get data of a case",
1412
- "tags": [
1413
- "Cases"
1414
- ]
1415
- },
1416
- "put": {
1417
- "parameters": [
1418
- {
1419
- "in": "body",
1420
- "required": false,
1421
- "name": "body",
1422
- "schema": {
1423
- "$ref": "#/definitions/CaseEditRequest"
1424
- }
1425
- },
1426
- {
1427
- "in": "path",
1428
- "name": "idx",
1429
- "required": true,
1430
- "type": "integer",
1431
- "format": "int32"
1432
- }
1433
- ],
1434
- "responses": {},
1435
- "description": "Edit a case",
1436
- "tags": [
1437
- "Cases"
1438
- ]
1439
- },
1440
- "delete": {
1441
- "parameters": [
1442
- {
1443
- "in": "path",
1444
- "name": "idx",
1445
- "required": true,
1446
- "type": "integer",
1447
- "format": "int32"
1448
- }
1449
- ],
1450
- "responses": {},
1451
- "description": "Delete a case",
1452
- "tags": [
1453
- "Cases"
1454
- ]
1455
- }
1456
- },
1457
- "/case/{idx}/instance/": {
1458
- "post": {
1459
- "parameters": [
1460
- {
1461
- "in": "path",
1462
- "name": "idx",
1463
- "required": true,
1464
- "type": "integer",
1465
- "format": "int32"
1466
- }
1467
- ],
1468
- "responses": {
1469
- "default": {
1470
- "schema": {
1471
- "$ref": "#/definitions/CaseToInstanceResponse"
1472
- },
1473
- "description": ""
1474
- }
1475
- },
1476
- "description": "Copies the information stored in a case into a new instance",
1477
- "tags": [
1478
- "Cases"
1479
- ]
1480
- }
1481
- },
1482
- "/case/{idx1}/{idx2}/": {
1483
- "get": {
1484
- "parameters": [
1485
- {
1486
- "in": "query",
1487
- "name": "data",
1488
- "type": "boolean",
1489
- "required": false
1490
- },
1491
- {
1492
- "in": "query",
1493
- "name": "solution",
1494
- "type": "boolean",
1495
- "required": false
1496
- },
1497
- {
1498
- "in": "path",
1499
- "name": "idx2",
1500
- "required": true,
1501
- "type": "integer",
1502
- "format": "int32"
1503
- },
1504
- {
1505
- "in": "path",
1506
- "name": "idx1",
1507
- "required": true,
1508
- "type": "integer",
1509
- "format": "int32"
1510
- }
1511
- ],
1512
- "responses": {
1513
- "default": {
1514
- "schema": {
1515
- "$ref": "#/definitions/CaseCompareResponse"
1516
- },
1517
- "description": ""
1518
- }
1519
- },
1520
- "description": "Compares the data and / or solution of two given cases",
1521
- "tags": [
1522
- "Cases"
1523
- ]
1524
- }
1525
- },
1526
- "/action/": {
1527
- "get": {
1528
- "parameters": [],
1529
- "responses": {
1530
- "default": {
1531
- "schema": {
1532
- "type": "array",
1533
- "items": {
1534
- "$ref": "#/definitions/ActionsResponse"
1535
- }
1536
- },
1537
- "description": ""
1538
- }
1539
- },
1540
- "description": "Get all the actions",
1541
- "tags": [
1542
- "Actions"
1543
- ]
1544
- }
1545
- },
1546
- "/permission/": {
1547
- "get": {
1548
- "parameters": [],
1549
- "responses": {
1550
- "default": {
1551
- "schema": {
1552
- "type": "array",
1553
- "items": {
1554
- "$ref": "#/definitions/PermissionViewRoleResponse"
1555
- }
1556
- },
1557
- "description": ""
1558
- }
1559
- },
1560
- "description": "Get all the permissions assigned to the roles",
1561
- "tags": [
1562
- "PermissionViewRole"
1563
- ]
1564
- },
1565
- "post": {
1566
- "parameters": [
1567
- {
1568
- "in": "body",
1569
- "required": false,
1570
- "name": "body",
1571
- "schema": {
1572
- "$ref": "#/definitions/PermissionViewRoleRequest"
1573
- }
1574
- }
1575
- ],
1576
- "responses": {
1577
- "default": {
1578
- "schema": {
1579
- "$ref": "#/definitions/PermissionViewRoleResponse"
1580
- },
1581
- "description": ""
1582
- }
1583
- },
1584
- "description": "Create a new permission",
1585
- "tags": [
1586
- "PermissionViewRole"
1587
- ]
1588
- }
1589
- },
1590
- "/permission/{idx}/": {
1591
- "get": {
1592
- "parameters": [
1593
- {
1594
- "in": "path",
1595
- "name": "idx",
1596
- "required": true,
1597
- "type": "integer",
1598
- "format": "int32"
1599
- }
1600
- ],
1601
- "responses": {
1602
- "default": {
1603
- "schema": {
1604
- "$ref": "#/definitions/PermissionViewRoleResponse"
1605
- },
1606
- "description": ""
1607
- }
1608
- },
1609
- "description": "Get one permission",
1610
- "tags": [
1611
- "PermissionViewRole"
1612
- ]
1613
- },
1614
- "put": {
1615
- "parameters": [
1616
- {
1617
- "in": "body",
1618
- "required": false,
1619
- "name": "body",
1620
- "schema": {
1621
- "$ref": "#/definitions/PermissionViewRoleEditRequest"
1622
- }
1623
- },
1624
- {
1625
- "in": "path",
1626
- "name": "idx",
1627
- "required": true,
1628
- "type": "integer",
1629
- "format": "int32"
1630
- }
1631
- ],
1632
- "responses": {},
1633
- "description": "Edit a permission",
1634
- "tags": [
1635
- "PermissionViewRole"
1636
- ]
1637
- },
1638
- "delete": {
1639
- "parameters": [
1640
- {
1641
- "in": "path",
1642
- "name": "idx",
1643
- "required": true,
1644
- "type": "integer",
1645
- "format": "int32"
1646
- }
1647
- ],
1648
- "responses": {},
1649
- "description": "Delete a permission",
1650
- "tags": [
1651
- "PermissionViewRole"
1652
- ]
1653
- }
1654
- },
1655
- "/roles/": {
1656
- "get": {
1657
- "parameters": [],
1658
- "responses": {
1659
- "default": {
1660
- "schema": {
1661
- "type": "array",
1662
- "items": {
1663
- "$ref": "#/definitions/RolesResponse"
1664
- }
1665
- },
1666
- "description": ""
1667
- }
1668
- },
1669
- "description": "Gets all the roles",
1670
- "tags": [
1671
- "Roles"
1672
- ]
1673
- },
1674
- "post": {
1675
- "parameters": [
1676
- {
1677
- "in": "body",
1678
- "required": false,
1679
- "name": "body",
1680
- "schema": {
1681
- "$ref": "#/definitions/RolesRequest"
1682
- }
1683
- }
1684
- ],
1685
- "responses": {
1686
- "default": {
1687
- "schema": {
1688
- "$ref": "#/definitions/RolesResponse"
1689
- },
1690
- "description": ""
1691
- }
1692
- },
1693
- "description": "Creates a new role",
1694
- "tags": [
1695
- "Roles"
1696
- ]
1697
- }
1698
- },
1699
- "/roles/{idx}/": {
1700
- "get": {
1701
- "parameters": [
1702
- {
1703
- "in": "path",
1704
- "name": "idx",
1705
- "required": true,
1706
- "type": "integer",
1707
- "format": "int32"
1708
- }
1709
- ],
1710
- "responses": {
1711
- "default": {
1712
- "schema": {
1713
- "$ref": "#/definitions/RolesResponse"
1714
- },
1715
- "description": ""
1716
- }
1717
- },
1718
- "description": "Gets one role",
1719
- "tags": [
1720
- "Roles"
1721
- ]
1722
- },
1723
- "put": {
1724
- "parameters": [
1725
- {
1726
- "in": "body",
1727
- "required": false,
1728
- "name": "body",
1729
- "schema": {
1730
- "$ref": "#/definitions/RolesResponse"
1731
- }
1732
- },
1733
- {
1734
- "in": "path",
1735
- "name": "idx",
1736
- "required": true,
1737
- "type": "integer",
1738
- "format": "int32"
1739
- }
1740
- ],
1741
- "responses": {},
1742
- "description": "Modifies one role",
1743
- "tags": [
1744
- "Roles"
1745
- ]
1746
- },
1747
- "delete": {
1748
- "parameters": [
1749
- {
1750
- "in": "path",
1751
- "name": "idx",
1752
- "required": true,
1753
- "type": "integer",
1754
- "format": "int32"
1755
- }
1756
- ],
1757
- "responses": {},
1758
- "description": "Deletes one role",
1759
- "tags": [
1760
- "Roles"
1761
- ]
1762
- }
1763
- },
1764
- "/apiview/": {
1765
- "get": {
1766
- "parameters": [],
1767
- "responses": {
1768
- "default": {
1769
- "schema": {
1770
- "type": "array",
1771
- "items": {
1772
- "$ref": "#/definitions/ViewResponse"
1773
- }
1774
- },
1775
- "description": ""
1776
- }
1777
- },
1778
- "description": "Get all the api views",
1779
- "tags": [
1780
- "ApiViews"
1781
- ]
1782
- }
1783
- },
1784
- "/user/role/": {
1785
- "get": {
1786
- "parameters": [],
1787
- "responses": {
1788
- "default": {
1789
- "schema": {
1790
- "type": "array",
1791
- "items": {
1792
- "$ref": "#/definitions/UserRoleResponse"
1793
- }
1794
- },
1795
- "description": ""
1796
- }
1797
- },
1798
- "description": "Gets all the user role assignments",
1799
- "tags": [
1800
- "User roles"
1801
- ]
1802
- },
1803
- "post": {
1804
- "parameters": [
1805
- {
1806
- "in": "body",
1807
- "required": false,
1808
- "name": "body",
1809
- "schema": {
1810
- "$ref": "#/definitions/UserRoleRequest"
1811
- }
1812
- }
1813
- ],
1814
- "responses": {
1815
- "default": {
1816
- "schema": {
1817
- "$ref": "#/definitions/UserRoleResponse"
1818
- },
1819
- "description": ""
1820
- }
1821
- },
1822
- "description": "Creates a new role assignment",
1823
- "tags": [
1824
- "User roles"
1825
- ]
1826
- }
1827
- },
1828
- "/user/role/{user_id}/{role_id}/": {
1829
- "get": {
1830
- "parameters": [
1831
- {
1832
- "in": "path",
1833
- "name": "user_id",
1834
- "required": true,
1835
- "type": "integer",
1836
- "format": "int32"
1837
- },
1838
- {
1839
- "in": "path",
1840
- "name": "role_id",
1841
- "required": true,
1842
- "type": "integer",
1843
- "format": "int32"
1844
- }
1845
- ],
1846
- "responses": {
1847
- "default": {
1848
- "schema": {
1849
- "$ref": "#/definitions/UserRoleResponse"
1850
- },
1851
- "description": ""
1852
- }
1853
- },
1854
- "description": "Gets one user role assignment",
1855
- "tags": [
1856
- "User roles"
1857
- ]
1858
- },
1859
- "delete": {
1860
- "parameters": [
1861
- {
1862
- "in": "path",
1863
- "name": "user_id",
1864
- "required": true,
1865
- "type": "integer",
1866
- "format": "int32"
1867
- },
1868
- {
1869
- "in": "path",
1870
- "name": "role_id",
1871
- "required": true,
1872
- "type": "integer",
1873
- "format": "int32"
1874
- }
1875
- ],
1876
- "responses": {},
1877
- "description": "Deletes one user role assignment",
1878
- "tags": [
1879
- "User roles"
1880
- ]
1881
- }
1882
- },
1883
- "/user/recover-password/": {
1884
- "put": {
1885
- "parameters": [
1886
- {
1887
- "in": "body",
1888
- "required": false,
1889
- "name": "body",
1890
- "schema": {
1891
- "$ref": "#/definitions/RecoverPasswordRequest"
1892
- }
1893
- }
1894
- ],
1895
- "responses": {},
1896
- "description": "Send email to create new password",
1897
- "tags": [
1898
- "Users"
1899
- ]
1900
- }
1901
- },
1902
- "/licences/": {
1903
- "get": {
1904
- "parameters": [],
1905
- "responses": {},
1906
- "description": "Get list of all the libraries and their license information",
1907
- "tags": [
1908
- "Licenses"
1909
- ]
1910
- }
1911
- },
1912
- "/table/{table_name}/": {
1913
- "get": {
1914
- "parameters": [
1915
- {
1916
- "in": "query",
1917
- "name": "limit",
1918
- "type": "integer",
1919
- "required": false
1920
- },
1921
- {
1922
- "in": "query",
1923
- "name": "offset",
1924
- "type": "integer",
1925
- "required": false
1926
- },
1927
- {
1928
- "in": "query",
1929
- "name": "creation_date_gte",
1930
- "type": "string",
1931
- "format": "date-time",
1932
- "required": false
1933
- },
1934
- {
1935
- "in": "query",
1936
- "name": "creation_date_lte",
1937
- "type": "string",
1938
- "format": "date-time",
1939
- "required": false
1940
- },
1941
- {
1942
- "in": "query",
1943
- "name": "id",
1944
- "type": "string",
1945
- "required": false
1946
- },
1947
- {
1948
- "in": "query",
1949
- "name": "name",
1950
- "type": "string",
1951
- "required": false
1952
- },
1953
- {
1954
- "in": "query",
1955
- "name": "deletion_date_gte",
1956
- "type": "string",
1957
- "format": "date-time",
1958
- "required": false
1959
- },
1960
- {
1961
- "in": "query",
1962
- "name": "deletion_date_lte",
1963
- "type": "string",
1964
- "format": "date-time",
1965
- "required": false
1966
- },
1967
- {
1968
- "in": "query",
1969
- "name": "update_date_gte",
1970
- "type": "string",
1971
- "format": "date-time",
1972
- "required": false
1973
- },
1974
- {
1975
- "in": "query",
1976
- "name": "update_date_lte",
1977
- "type": "string",
1978
- "format": "date-time",
1979
- "required": false
1980
- },
1981
- {
1982
- "in": "query",
1983
- "name": "user_name",
1984
- "type": "string",
1985
- "required": false
1986
- },
1987
- {
1988
- "in": "query",
1989
- "name": "last_name",
1990
- "type": "string",
1991
- "required": false
1992
- },
1993
- {
1994
- "in": "query",
1995
- "name": "email",
1996
- "type": "string",
1997
- "required": false
1998
- },
1999
- {
2000
- "in": "query",
2001
- "name": "role_id",
2002
- "type": "integer",
2003
- "required": false
2004
- },
2005
- {
2006
- "in": "query",
2007
- "name": "url_rule",
2008
- "type": "string",
2009
- "required": false
2010
- },
2011
- {
2012
- "in": "query",
2013
- "name": "description",
2014
- "type": "string",
2015
- "required": false
2016
- },
2017
- {
2018
- "in": "query",
2019
- "name": "schema",
2020
- "type": "string",
2021
- "required": false
2022
- },
2023
- {
2024
- "in": "path",
2025
- "name": "table_name",
2026
- "required": true,
2027
- "type": "string"
2028
- }
2029
- ],
2030
- "responses": {},
2031
- "description": "Get all rows of a table",
2032
- "tags": [
2033
- "Tables"
2034
- ]
2035
- }
2036
- },
2037
- "/table/{table_name}/{idx}/": {
2038
- "get": {
2039
- "parameters": [
2040
- {
2041
- "in": "path",
2042
- "name": "table_name",
2043
- "required": true,
2044
- "type": "string"
2045
- },
2046
- {
2047
- "in": "path",
2048
- "name": "idx",
2049
- "required": true,
2050
- "type": "string"
2051
- }
2052
- ],
2053
- "responses": {},
2054
- "description": "Get a row",
2055
- "tags": [
2056
- "Tables"
2057
- ]
2058
- }
2059
- },
2060
- "/report/{idx}/": {
2061
- "get": {
2062
- "parameters": [
2063
- {
2064
- "in": "path",
2065
- "name": "idx",
2066
- "required": true,
2067
- "type": "integer",
2068
- "format": "int32"
2069
- }
2070
- ],
2071
- "responses": {
2072
- "default": {
2073
- "schema": {
2074
- "$ref": "#/definitions/Report"
2075
- },
2076
- "description": ""
2077
- }
2078
- },
2079
- "description": "Get details of a report",
2080
- "tags": [
2081
- "Reports"
2082
- ]
2083
- },
2084
- "delete": {
2085
- "parameters": [
2086
- {
2087
- "in": "path",
2088
- "name": "idx",
2089
- "required": true,
2090
- "type": "integer",
2091
- "format": "int32"
2092
- }
2093
- ],
2094
- "responses": {},
2095
- "description": "Delete a report",
2096
- "tags": [
2097
- "Reports"
2098
- ]
2099
- }
2100
- },
2101
- "/report/{idx}/edit/": {
2102
- "put": {
2103
- "parameters": [
2104
- {
2105
- "in": "formData",
2106
- "name": "name",
2107
- "type": "string",
2108
- "required": false
2109
- },
2110
- {
2111
- "in": "formData",
2112
- "name": "description",
2113
- "type": "string",
2114
- "required": false
2115
- },
2116
- {
2117
- "in": "formData",
2118
- "name": "file_url",
2119
- "type": "string",
2120
- "required": false
2121
- },
2122
- {
2123
- "in": "formData",
2124
- "name": "state",
2125
- "type": "integer",
2126
- "required": false
2127
- },
2128
- {
2129
- "in": "formData",
2130
- "name": "state_message",
2131
- "type": "string",
2132
- "required": false
2133
- },
2134
- {
2135
- "in": "path",
2136
- "name": "idx",
2137
- "required": true,
2138
- "type": "integer",
2139
- "format": "int32"
2140
- }
2141
- ],
2142
- "responses": {},
2143
- "description": "Edit a report",
2144
- "tags": [
2145
- "Reports"
2146
- ]
2147
- }
2148
- },
2149
- "/report/": {
2150
- "get": {
2151
- "parameters": [
2152
- {
2153
- "in": "query",
2154
- "name": "limit",
2155
- "type": "integer",
2156
- "required": false
2157
- },
2158
- {
2159
- "in": "query",
2160
- "name": "offset",
2161
- "type": "integer",
2162
- "required": false
2163
- },
2164
- {
2165
- "in": "query",
2166
- "name": "creation_date_gte",
2167
- "type": "string",
2168
- "format": "date-time",
2169
- "required": false
2170
- },
2171
- {
2172
- "in": "query",
2173
- "name": "creation_date_lte",
2174
- "type": "string",
2175
- "format": "date-time",
2176
- "required": false
2177
- },
2178
- {
2179
- "in": "query",
2180
- "name": "id",
2181
- "type": "string",
2182
- "required": false
2183
- },
2184
- {
2185
- "in": "query",
2186
- "name": "name",
2187
- "type": "string",
2188
- "required": false
2189
- },
2190
- {
2191
- "in": "query",
2192
- "name": "deletion_date_gte",
2193
- "type": "string",
2194
- "format": "date-time",
2195
- "required": false
2196
- },
2197
- {
2198
- "in": "query",
2199
- "name": "deletion_date_lte",
2200
- "type": "string",
2201
- "format": "date-time",
2202
- "required": false
2203
- },
2204
- {
2205
- "in": "query",
2206
- "name": "update_date_gte",
2207
- "type": "string",
2208
- "format": "date-time",
2209
- "required": false
2210
- },
2211
- {
2212
- "in": "query",
2213
- "name": "update_date_lte",
2214
- "type": "string",
2215
- "format": "date-time",
2216
- "required": false
2217
- },
2218
- {
2219
- "in": "query",
2220
- "name": "user_name",
2221
- "type": "string",
2222
- "required": false
2223
- },
2224
- {
2225
- "in": "query",
2226
- "name": "last_name",
2227
- "type": "string",
2228
- "required": false
2229
- },
2230
- {
2231
- "in": "query",
2232
- "name": "email",
2233
- "type": "string",
2234
- "required": false
2235
- },
2236
- {
2237
- "in": "query",
2238
- "name": "role_id",
2239
- "type": "integer",
2240
- "required": false
2241
- },
2242
- {
2243
- "in": "query",
2244
- "name": "url_rule",
2245
- "type": "string",
2246
- "required": false
2247
- },
2248
- {
2249
- "in": "query",
2250
- "name": "description",
2251
- "type": "string",
2252
- "required": false
2253
- },
2254
- {
2255
- "in": "query",
2256
- "name": "execution_id",
2257
- "type": "string",
2258
- "required": false
2259
- }
2260
- ],
2261
- "responses": {
2262
- "default": {
2263
- "schema": {
2264
- "type": "array",
2265
- "items": {
2266
- "$ref": "#/definitions/Report"
2267
- }
2268
- },
2269
- "description": ""
2270
- }
2271
- },
2272
- "description": "Get all reports",
2273
- "tags": [
2274
- "Reports"
2275
- ]
2276
- },
2277
- "post": {
2278
- "parameters": [
2279
- {
2280
- "in": "formData",
2281
- "name": "name",
2282
- "type": "string",
2283
- "required": true
2284
- },
2285
- {
2286
- "in": "formData",
2287
- "name": "description",
2288
- "type": "string",
2289
- "required": false
2290
- },
2291
- {
2292
- "in": "formData",
2293
- "name": "execution_id",
2294
- "type": "string",
2295
- "required": true
2296
- },
2297
- {
2298
- "in": "formData",
2299
- "name": "state",
2300
- "type": "integer",
2301
- "required": false
2302
- },
2303
- {
2304
- "in": "formData",
2305
- "name": "state_message",
2306
- "type": "string",
2307
- "required": false
2308
- }
2309
- ],
2310
- "responses": {
2311
- "default": {
2312
- "schema": {
2313
- "$ref": "#/definitions/Report"
2314
- },
2315
- "description": ""
2316
- }
2317
- },
2318
- "description": "Create a report",
2319
- "tags": [
2320
- "Reports"
2321
- ]
2322
- }
2323
- }
2324
- },
2325
- "info": {
2326
- "title": "Cornflow API docs",
2327
- "version": "v1"
2328
- },
2329
- "swagger": "2.0.0",
2330
- "definitions": {
2331
- "InstanceEndpointResponse": {
2332
- "type": "object",
2333
- "properties": {
2334
- "id": {
2335
- "type": "string"
2336
- },
2337
- "description": {
2338
- "type": "string"
2339
- },
2340
- "data_hash": {
2341
- "type": "string"
2342
- },
2343
- "created_at": {
2344
- "type": "string",
2345
- "format": "date-time"
2346
- },
2347
- "user_id": {
2348
- "type": "integer"
2349
- },
2350
- "schema": {
2351
- "type": "string"
2352
- },
2353
- "name": {
2354
- "type": "string"
2355
- }
2356
- },
2357
- "required": [
2358
- "id"
2359
- ]
2360
- },
2361
- "InstanceEditRequest": {
2362
- "type": "object",
2363
- "properties": {
2364
- "name": {
2365
- "type": "string"
2366
- },
2367
- "description": {
2368
- "type": "string"
2369
- },
2370
- "data": {}
2371
- }
2372
- },
2373
- "ReportSchemaBase": {
2374
- "type": "object",
2375
- "properties": {
2376
- "id": {
2377
- "type": "integer",
2378
- "readOnly": true
2379
- },
2380
- "file_url": {
2381
- "type": "string"
2382
- },
2383
- "state": {
2384
- "type": "integer"
2385
- },
2386
- "name": {
2387
- "type": "string"
2388
- }
2389
- },
2390
- "required": [
2391
- "name"
2392
- ]
2393
- },
2394
- "ConfigSchemaResponse": {
2395
- "type": "object",
2396
- "properties": {
2397
- "maxMemory": {
2398
- "type": "integer"
2399
- },
2400
- "timeLimit": {
2401
- "type": "integer"
2402
- },
2403
- "gapRel": {
2404
- "type": "number"
2405
- },
2406
- "maxNodes": {
2407
- "type": "integer"
2408
- },
2409
- "seconds": {
2410
- "type": "integer"
2411
- },
2412
- "solver": {
2413
- "type": "string",
2414
- "default": "PULP_CBC_CMD"
2415
- },
2416
- "checks_only": {
2417
- "type": "boolean"
2418
- },
2419
- "warmStart": {
2420
- "type": "boolean"
2421
- },
2422
- "gapAbs": {
2423
- "type": "number"
2424
- },
2425
- "mip": {
2426
- "type": "boolean"
2427
- },
2428
- "msg": {
2429
- "type": "boolean"
2430
- },
2431
- "threads": {
2432
- "type": "integer"
2433
- },
2434
- "report": {},
2435
- "keepFiles": {
2436
- "type": "boolean"
2437
- },
2438
- "options": {
2439
- "type": "array",
2440
- "items": {
2441
- "type": "string"
2442
- }
2443
- },
2444
- "logPath": {
2445
- "type": "string"
2446
- },
2447
- "MIPGap": {
2448
- "type": "number"
2449
- }
2450
- }
2451
- },
2452
- "ExecutionDetailsEndpointResponse": {
2453
- "type": "object",
2454
- "properties": {
2455
- "id": {
2456
- "type": "string"
2457
- },
2458
- "reports": {
2459
- "type": "array",
2460
- "items": {
2461
- "$ref": "#/definitions/ReportSchemaBase"
2462
- }
2463
- },
2464
- "config": {
2465
- "$ref": "#/definitions/ConfigSchemaResponse"
2466
- },
2467
- "instance_id": {
2468
- "type": "string"
2469
- },
2470
- "description": {
2471
- "type": "string"
2472
- },
2473
- "data_hash": {
2474
- "type": "string"
2475
- },
2476
- "message": {
2477
- "type": "string"
2478
- },
2479
- "created_at": {
2480
- "type": "string",
2481
- "format": "date-time"
2482
- },
2483
- "user_id": {
2484
- "type": "integer"
2485
- },
2486
- "schema": {
2487
- "type": "string"
2488
- },
2489
- "name": {
2490
- "type": "string"
2491
- },
2492
- "state": {
2493
- "type": "integer"
2494
- }
2495
- },
2496
- "required": [
2497
- "id"
2498
- ]
2499
- },
2500
- "InstanceDetailsEndpointResponse": {
2501
- "type": "object",
2502
- "properties": {
2503
- "id": {
2504
- "type": "string"
2505
- },
2506
- "description": {
2507
- "type": "string"
2508
- },
2509
- "data_hash": {
2510
- "type": "string"
2511
- },
2512
- "created_at": {
2513
- "type": "string",
2514
- "format": "date-time"
2515
- },
2516
- "user_id": {
2517
- "type": "integer"
2518
- },
2519
- "schema": {
2520
- "type": "string"
2521
- },
2522
- "name": {
2523
- "type": "string"
2524
- },
2525
- "executions": {
2526
- "type": "array",
2527
- "items": {
2528
- "$ref": "#/definitions/ExecutionDetailsEndpointResponse"
2529
- }
2530
- }
2531
- },
2532
- "required": [
2533
- "id"
2534
- ]
2535
- },
2536
- "InstanceDataEndpointResponse": {
2537
- "type": "object",
2538
- "properties": {
2539
- "id": {
2540
- "type": "string"
2541
- },
2542
- "description": {
2543
- "type": "string"
2544
- },
2545
- "data_hash": {
2546
- "type": "string"
2547
- },
2548
- "data": {},
2549
- "created_at": {
2550
- "type": "string",
2551
- "format": "date-time"
2552
- },
2553
- "user_id": {
2554
- "type": "integer"
2555
- },
2556
- "schema": {
2557
- "type": "string"
2558
- },
2559
- "name": {
2560
- "type": "string"
2561
- },
2562
- "checks": {
2563
- "x-nullable": true
2564
- }
2565
- },
2566
- "required": [
2567
- "data",
2568
- "id"
2569
- ]
2570
- },
2571
- "ExecutionEditRequest": {
2572
- "type": "object",
2573
- "properties": {
2574
- "name": {
2575
- "type": "string"
2576
- },
2577
- "description": {
2578
- "type": "string"
2579
- },
2580
- "data": {}
2581
- }
2582
- },
2583
- "ExecutionDetailsEndpointWithIndicatorsResponse": {
2584
- "type": "object",
2585
- "properties": {
2586
- "id": {
2587
- "type": "string"
2588
- },
2589
- "reports": {
2590
- "type": "array",
2591
- "items": {
2592
- "$ref": "#/definitions/ReportSchemaBase"
2593
- }
2594
- },
2595
- "config": {
2596
- "$ref": "#/definitions/ConfigSchemaResponse"
2597
- },
2598
- "indicators": {
2599
- "readOnly": true
2600
- },
2601
- "instance_id": {
2602
- "type": "string"
2603
- },
2604
- "description": {
2605
- "type": "string"
2606
- },
2607
- "data_hash": {
2608
- "type": "string"
2609
- },
2610
- "message": {
2611
- "type": "string"
2612
- },
2613
- "created_at": {
2614
- "type": "string",
2615
- "format": "date-time"
2616
- },
2617
- "user_id": {
2618
- "type": "integer"
2619
- },
2620
- "schema": {
2621
- "type": "string"
2622
- },
2623
- "name": {
2624
- "type": "string"
2625
- },
2626
- "state": {
2627
- "type": "integer"
2628
- }
2629
- },
2630
- "required": [
2631
- "id"
2632
- ]
2633
- },
2634
- "ExecutionStatusEndpointUpdate": {
2635
- "type": "object",
2636
- "properties": {
2637
- "id": {
2638
- "type": "string"
2639
- },
2640
- "status": {
2641
- "type": "integer"
2642
- }
2643
- }
2644
- },
2645
- "ExecutionStatusEndpointResponse": {
2646
- "type": "object",
2647
- "properties": {
2648
- "id": {
2649
- "type": "string"
2650
- },
2651
- "state": {
2652
- "type": "integer"
2653
- },
2654
- "data_hash": {
2655
- "type": "string",
2656
- "readOnly": true
2657
- },
2658
- "message": {
2659
- "type": "string"
2660
- }
2661
- }
2662
- },
2663
- "BasicLog": {
2664
- "type": "object",
2665
- "properties": {
2666
- "sol_code": {
2667
- "type": "integer",
2668
- "x-nullable": true
2669
- },
2670
- "status": {
2671
- "type": "string",
2672
- "x-nullable": true
2673
- },
2674
- "status_code": {
2675
- "type": "integer",
2676
- "x-nullable": true
2677
- }
2678
- }
2679
- },
2680
- "ExecutionDataEndpointResponse": {
2681
- "type": "object",
2682
- "properties": {
2683
- "id": {
2684
- "type": "string"
2685
- },
2686
- "reports": {
2687
- "type": "array",
2688
- "items": {
2689
- "$ref": "#/definitions/ReportSchemaBase"
2690
- }
2691
- },
2692
- "config": {
2693
- "$ref": "#/definitions/ConfigSchemaResponse"
2694
- },
2695
- "instance_id": {
2696
- "type": "string"
2697
- },
2698
- "description": {
2699
- "type": "string"
2700
- },
2701
- "data_hash": {
2702
- "type": "string"
2703
- },
2704
- "message": {
2705
- "type": "string"
2706
- },
2707
- "data": {},
2708
- "created_at": {
2709
- "type": "string",
2710
- "format": "date-time"
2711
- },
2712
- "user_id": {
2713
- "type": "integer"
2714
- },
2715
- "log": {
2716
- "$ref": "#/definitions/BasicLog"
2717
- },
2718
- "schema": {
2719
- "type": "string"
2720
- },
2721
- "name": {
2722
- "type": "string"
2723
- },
2724
- "checks": {},
2725
- "state": {
2726
- "type": "integer"
2727
- }
2728
- },
2729
- "required": [
2730
- "id"
2731
- ]
2732
- },
2733
- "Progress": {
2734
- "type": "object",
2735
- "properties": {
2736
- "NodesLeft": {
2737
- "type": "array",
2738
- "items": {
2739
- "type": "string"
2740
- }
2741
- },
2742
- "IInf": {
2743
- "type": "array",
2744
- "items": {
2745
- "type": "string"
2746
- }
2747
- },
2748
- "Gap": {
2749
- "type": "array",
2750
- "items": {
2751
- "type": "string"
2752
- }
2753
- },
2754
- "CutsBestBound": {
2755
- "type": "array",
2756
- "items": {
2757
- "type": "string"
2758
- }
2759
- },
2760
- "Node": {
2761
- "type": "array",
2762
- "items": {
2763
- "type": "string"
2764
- }
2765
- },
2766
- "Depth": {
2767
- "type": "array",
2768
- "items": {
2769
- "type": "string"
2770
- }
2771
- },
2772
- "ItpNode": {
2773
- "type": "array",
2774
- "items": {
2775
- "type": "string"
2776
- }
2777
- },
2778
- "Time": {
2779
- "type": "array",
2780
- "items": {
2781
- "type": "string"
2782
- }
2783
- },
2784
- "BestInteger": {
2785
- "type": "array",
2786
- "items": {
2787
- "type": "string"
2788
- }
2789
- },
2790
- "Objective": {
2791
- "type": "array",
2792
- "items": {
2793
- "type": "string"
2794
- }
2795
- }
2796
- }
2797
- },
2798
- "Presolve": {
2799
- "type": "object",
2800
- "properties": {
2801
- "cols": {
2802
- "type": "integer"
2803
- },
2804
- "rows": {
2805
- "type": "integer"
2806
- },
2807
- "time": {
2808
- "type": "number"
2809
- }
2810
- },
2811
- "required": [
2812
- "cols",
2813
- "rows",
2814
- "time"
2815
- ]
2816
- },
2817
- "FirstSolution": {
2818
- "type": "object",
2819
- "properties": {
2820
- "Node": {
2821
- "type": "integer",
2822
- "x-nullable": true
2823
- },
2824
- "NodesLeft": {
2825
- "type": "integer",
2826
- "x-nullable": true
2827
- },
2828
- "BestInteger": {
2829
- "type": "number",
2830
- "x-nullable": true
2831
- },
2832
- "CutsBestBound": {
2833
- "type": "number",
2834
- "x-nullable": true
2835
- }
2836
- },
2837
- "required": [
2838
- "BestInteger",
2839
- "CutsBestBound",
2840
- "Node",
2841
- "NodesLeft"
2842
- ]
2843
- },
2844
- "Matrix": {
2845
- "type": "object",
2846
- "properties": {
2847
- "nonzeros": {
2848
- "type": "integer"
2849
- },
2850
- "constraints": {
2851
- "type": "integer"
2852
- },
2853
- "variables": {
2854
- "type": "integer"
2855
- }
2856
- }
2857
- },
2858
- "Log": {
2859
- "type": "object",
2860
- "properties": {
2861
- "progress": {
2862
- "$ref": "#/definitions/Progress"
2863
- },
2864
- "presolve": {
2865
- "x-nullable": true,
2866
- "allOf": [
2867
- {
2868
- "$ref": "#/definitions/Presolve"
2869
- }
2870
- ]
2871
- },
2872
- "first_solution": {
2873
- "x-nullable": true,
2874
- "allOf": [
2875
- {
2876
- "$ref": "#/definitions/FirstSolution"
2877
- }
2878
- ]
2879
- },
2880
- "solver": {
2881
- "type": "string",
2882
- "x-nullable": true
2883
- },
2884
- "cut_info": {
2885
- "x-nullable": true
2886
- },
2887
- "sol_code": {
2888
- "type": "integer",
2889
- "x-nullable": true
2890
- },
2891
- "status": {
2892
- "type": "string",
2893
- "x-nullable": true
2894
- },
2895
- "version": {
2896
- "type": "string",
2897
- "x-nullable": true
2898
- },
2899
- "best_solution": {
2900
- "type": "number",
2901
- "x-nullable": true
2902
- },
2903
- "gap": {
2904
- "type": "number",
2905
- "x-nullable": true
2906
- },
2907
- "time": {
2908
- "type": "number",
2909
- "x-nullable": true
2910
- },
2911
- "matrix": {
2912
- "x-nullable": true,
2913
- "allOf": [
2914
- {
2915
- "$ref": "#/definitions/Matrix"
2916
- }
2917
- ]
2918
- },
2919
- "best_bound": {
2920
- "type": "number",
2921
- "x-nullable": true
2922
- },
2923
- "matrix_post": {
2924
- "x-nullable": true,
2925
- "allOf": [
2926
- {
2927
- "$ref": "#/definitions/Matrix"
2928
- }
2929
- ]
2930
- },
2931
- "first_relaxed": {
2932
- "type": "number",
2933
- "x-nullable": true
2934
- },
2935
- "rootTime": {
2936
- "type": "number",
2937
- "x-nullable": true
2938
- },
2939
- "nodes": {
2940
- "type": "integer",
2941
- "x-nullable": true
2942
- },
2943
- "status_code": {
2944
- "type": "integer",
2945
- "x-nullable": true
2946
- }
2947
- }
2948
- },
2949
- "ExecutionLogEndpointResponse": {
2950
- "type": "object",
2951
- "properties": {
2952
- "id": {
2953
- "type": "string"
2954
- },
2955
- "reports": {
2956
- "type": "array",
2957
- "items": {
2958
- "$ref": "#/definitions/ReportSchemaBase"
2959
- }
2960
- },
2961
- "config": {
2962
- "$ref": "#/definitions/ConfigSchemaResponse"
2963
- },
2964
- "indicators": {
2965
- "readOnly": true
2966
- },
2967
- "instance_id": {
2968
- "type": "string"
2969
- },
2970
- "description": {
2971
- "type": "string"
2972
- },
2973
- "log_text": {
2974
- "type": "string"
2975
- },
2976
- "data_hash": {
2977
- "type": "string"
2978
- },
2979
- "message": {
2980
- "type": "string"
2981
- },
2982
- "created_at": {
2983
- "type": "string",
2984
- "format": "date-time"
2985
- },
2986
- "user_id": {
2987
- "type": "integer"
2988
- },
2989
- "log": {
2990
- "$ref": "#/definitions/Log"
2991
- },
2992
- "schema": {
2993
- "type": "string"
2994
- },
2995
- "name": {
2996
- "type": "string"
2997
- },
2998
- "state": {
2999
- "type": "integer"
3000
- }
3001
- },
3002
- "required": [
3003
- "id"
3004
- ]
3005
- },
3006
- "Config": {
3007
- "type": "object",
3008
- "properties": {
3009
- "maxMemory": {
3010
- "type": "integer"
3011
- },
3012
- "timeLimit": {
3013
- "type": "integer"
3014
- },
3015
- "gapRel": {
3016
- "type": "number"
3017
- },
3018
- "maxNodes": {
3019
- "type": "integer"
3020
- },
3021
- "seconds": {
3022
- "type": "integer"
3023
- },
3024
- "solver": {
3025
- "type": "string",
3026
- "default": "PULP_CBC_CMD"
3027
- },
3028
- "warmStart": {
3029
- "type": "boolean"
3030
- },
3031
- "gapAbs": {
3032
- "type": "number"
3033
- },
3034
- "mip": {
3035
- "type": "boolean"
3036
- },
3037
- "msg": {
3038
- "type": "boolean"
3039
- },
3040
- "threads": {
3041
- "type": "integer"
3042
- },
3043
- "report": {},
3044
- "keepFiles": {
3045
- "type": "boolean"
3046
- },
3047
- "options": {
3048
- "type": "array",
3049
- "items": {
3050
- "type": "string"
3051
- }
3052
- },
3053
- "logPath": {
3054
- "type": "string"
3055
- },
3056
- "MIPGap": {
3057
- "type": "number"
3058
- }
3059
- }
3060
- },
3061
- "ReLaunchExecutionRequest": {
3062
- "type": "object",
3063
- "properties": {
3064
- "config": {
3065
- "$ref": "#/definitions/Config"
3066
- }
3067
- },
3068
- "required": [
3069
- "config"
3070
- ]
3071
- },
3072
- "ExecutionRequest": {
3073
- "type": "object",
3074
- "properties": {
3075
- "config": {},
3076
- "instance_id": {
3077
- "type": "string"
3078
- },
3079
- "description": {
3080
- "type": "string"
3081
- },
3082
- "data": {},
3083
- "schema": {
3084
- "type": "string"
3085
- },
3086
- "name": {
3087
- "type": "string"
3088
- }
3089
- },
3090
- "required": [
3091
- "config",
3092
- "instance_id",
3093
- "name"
3094
- ]
3095
- },
3096
- "ExecutionDetailsWithIndicatorsAndLogResponse": {
3097
- "type": "object",
3098
- "properties": {
3099
- "id": {
3100
- "type": "string"
3101
- },
3102
- "reports": {
3103
- "type": "array",
3104
- "items": {
3105
- "$ref": "#/definitions/ReportSchemaBase"
3106
- }
3107
- },
3108
- "config": {
3109
- "$ref": "#/definitions/ConfigSchemaResponse"
3110
- },
3111
- "indicators": {
3112
- "readOnly": true
3113
- },
3114
- "instance_id": {
3115
- "type": "string"
3116
- },
3117
- "description": {
3118
- "type": "string"
3119
- },
3120
- "data_hash": {
3121
- "type": "string"
3122
- },
3123
- "message": {
3124
- "type": "string"
3125
- },
3126
- "created_at": {
3127
- "type": "string",
3128
- "format": "date-time"
3129
- },
3130
- "user_id": {
3131
- "type": "integer"
3132
- },
3133
- "log": {
3134
- "$ref": "#/definitions/BasicLog"
3135
- },
3136
- "schema": {
3137
- "type": "string"
3138
- },
3139
- "name": {
3140
- "type": "string"
3141
- },
3142
- "state": {
3143
- "type": "integer"
3144
- }
3145
- },
3146
- "required": [
3147
- "id"
3148
- ]
3149
- },
3150
- "ExecutionDagRequest": {
3151
- "type": "object",
3152
- "properties": {
3153
- "log_text": {
3154
- "type": "string"
3155
- },
3156
- "data": {},
3157
- "solution_schema": {
3158
- "type": "string",
3159
- "x-nullable": true
3160
- },
3161
- "checks": {},
3162
- "state": {
3163
- "type": "integer"
3164
- },
3165
- "log_json": {
3166
- "$ref": "#/definitions/Log"
3167
- }
3168
- }
3169
- },
3170
- "ExecutionDagPostRequest": {
3171
- "type": "object",
3172
- "properties": {
3173
- "config": {},
3174
- "instance_id": {
3175
- "type": "string"
3176
- },
3177
- "description": {
3178
- "type": "string"
3179
- },
3180
- "log_text": {
3181
- "type": "string"
3182
- },
3183
- "data": {},
3184
- "solution_schema": {
3185
- "type": "string",
3186
- "x-nullable": true
3187
- },
3188
- "schema": {
3189
- "type": "string"
3190
- },
3191
- "name": {
3192
- "type": "string"
3193
- },
3194
- "checks": {},
3195
- "state": {
3196
- "type": "integer"
3197
- },
3198
- "log_json": {
3199
- "$ref": "#/definitions/Log"
3200
- }
3201
- },
3202
- "required": [
3203
- "config",
3204
- "instance_id",
3205
- "name"
3206
- ]
3207
- },
3208
- "InstanceCheckRequest": {
3209
- "type": "object",
3210
- "properties": {
3211
- "checks": {}
3212
- }
3213
- },
3214
- "CaseCheckRequest": {
3215
- "type": "object",
3216
- "properties": {
3217
- "solution_checks": {},
3218
- "checks": {}
3219
- }
3220
- },
3221
- "DeployedDAG": {
3222
- "type": "object",
3223
- "properties": {
3224
- "id": {
3225
- "type": "string"
3226
- },
3227
- "description": {
3228
- "type": "string",
3229
- "x-nullable": true
3230
- },
3231
- "config_schema": {},
3232
- "instance_checks_schema": {},
3233
- "instance_schema": {},
3234
- "solution_schema": {},
3235
- "solution_checks_schema": {}
3236
- },
3237
- "required": [
3238
- "config_schema",
3239
- "id",
3240
- "instance_checks_schema",
3241
- "instance_schema",
3242
- "solution_checks_schema",
3243
- "solution_schema"
3244
- ]
3245
- },
3246
- "DeployedDAGEdit": {
3247
- "type": "object",
3248
- "properties": {
3249
- "description": {
3250
- "type": "string",
3251
- "x-nullable": true
3252
- },
3253
- "config_schema": {},
3254
- "instance_checks_schema": {},
3255
- "instance_schema": {},
3256
- "solution_schema": {},
3257
- "solution_checks_schema": {}
3258
- },
3259
- "required": [
3260
- "instance_checks_schema",
3261
- "solution_checks_schema"
3262
- ]
3263
- },
3264
- "UserEndpointResponse": {
3265
- "type": "object",
3266
- "properties": {
3267
- "id": {
3268
- "type": "integer"
3269
- },
3270
- "username": {
3271
- "type": "string"
3272
- },
3273
- "last_name": {
3274
- "type": "string"
3275
- },
3276
- "pwd_last_change": {
3277
- "type": "string"
3278
- },
3279
- "created_at": {
3280
- "type": "string"
3281
- },
3282
- "email": {
3283
- "type": "string"
3284
- },
3285
- "first_name": {
3286
- "type": "string"
3287
- }
3288
- }
3289
- },
3290
- "UserEditRequest": {
3291
- "type": "object",
3292
- "properties": {
3293
- "username": {
3294
- "type": "string"
3295
- },
3296
- "last_name": {
3297
- "type": "string"
3298
- },
3299
- "pwd_last_change": {
3300
- "type": "string",
3301
- "format": "date-time"
3302
- },
3303
- "password": {
3304
- "type": "string"
3305
- },
3306
- "email": {
3307
- "type": "string"
3308
- },
3309
- "first_name": {
3310
- "type": "string"
3311
- }
3312
- }
3313
- },
3314
- "UserDetailsEndpointResponse": {
3315
- "type": "object",
3316
- "properties": {
3317
- "id": {
3318
- "type": "integer"
3319
- },
3320
- "username": {
3321
- "type": "string"
3322
- },
3323
- "last_name": {
3324
- "type": "string"
3325
- },
3326
- "pwd_last_change": {
3327
- "type": "string"
3328
- },
3329
- "email": {
3330
- "type": "string"
3331
- },
3332
- "first_name": {
3333
- "type": "string"
3334
- }
3335
- }
3336
- },
3337
- "TokenEndpointResponse": {
3338
- "type": "object",
3339
- "properties": {
3340
- "valid": {
3341
- "type": "integer"
3342
- }
3343
- }
3344
- },
3345
- "SchemaListApp": {
3346
- "type": "object",
3347
- "properties": {
3348
- "name": {
3349
- "type": "string"
3350
- }
3351
- },
3352
- "required": [
3353
- "name"
3354
- ]
3355
- },
3356
- "SchemaOneApp": {
3357
- "type": "object",
3358
- "properties": {
3359
- "config": {},
3360
- "solution_checks": {},
3361
- "solution": {},
3362
- "instance_checks": {},
3363
- "name": {
3364
- "type": "string"
3365
- },
3366
- "instance": {}
3367
- },
3368
- "required": [
3369
- "config",
3370
- "instance",
3371
- "instance_checks",
3372
- "name",
3373
- "solution",
3374
- "solution_checks"
3375
- ]
3376
- },
3377
- "ExampleListData": {
3378
- "type": "object",
3379
- "properties": {
3380
- "name": {
3381
- "type": "string"
3382
- },
3383
- "description": {
3384
- "type": "string"
3385
- }
3386
- },
3387
- "required": [
3388
- "name"
3389
- ]
3390
- },
3391
- "ExampleDetailData": {
3392
- "type": "object",
3393
- "properties": {
3394
- "name": {
3395
- "type": "string"
3396
- },
3397
- "instance": {},
3398
- "solution": {},
3399
- "description": {
3400
- "type": "string"
3401
- }
3402
- },
3403
- "required": [
3404
- "instance",
3405
- "name"
3406
- ]
3407
- },
3408
- "HealthResponse": {
3409
- "type": "object",
3410
- "properties": {
3411
- "cornflow_status": {
3412
- "type": "string"
3413
- },
3414
- "airflow_status": {
3415
- "type": "string"
3416
- }
3417
- }
3418
- },
3419
- "CaseFromInstanceExecution": {
3420
- "type": "object",
3421
- "properties": {
3422
- "instance_id": {
3423
- "type": "string"
3424
- },
3425
- "description": {
3426
- "type": "string"
3427
- },
3428
- "schema": {
3429
- "type": "string"
3430
- },
3431
- "name": {
3432
- "type": "string"
3433
- },
3434
- "execution_id": {
3435
- "type": "string"
3436
- },
3437
- "parent_id": {
3438
- "type": "integer",
3439
- "x-nullable": true
3440
- }
3441
- },
3442
- "required": [
3443
- "name",
3444
- "schema"
3445
- ]
3446
- },
3447
- "CaseListResponse": {
3448
- "type": "object",
3449
- "properties": {
3450
- "id": {
3451
- "type": "integer"
3452
- },
3453
- "solution_hash": {
3454
- "type": "string"
3455
- },
3456
- "description": {
3457
- "type": "string"
3458
- },
3459
- "path": {
3460
- "type": "string"
3461
- },
3462
- "dependents": {
3463
- "type": "array",
3464
- "items": {
3465
- "type": "integer"
3466
- }
3467
- },
3468
- "updated_at": {
3469
- "type": "string",
3470
- "format": "date-time"
3471
- },
3472
- "data_hash": {
3473
- "type": "string"
3474
- },
3475
- "created_at": {
3476
- "type": "string",
3477
- "format": "date-time"
3478
- },
3479
- "user_id": {
3480
- "type": "integer"
3481
- },
3482
- "schema": {
3483
- "type": "string"
3484
- },
3485
- "name": {
3486
- "type": "string"
3487
- },
3488
- "is_dir": {}
3489
- }
3490
- },
3491
- "CaseListAllWithIndicators": {
3492
- "type": "object",
3493
- "properties": {
3494
- "id": {
3495
- "type": "integer"
3496
- },
3497
- "solution_hash": {
3498
- "type": "string"
3499
- },
3500
- "indicators": {
3501
- "readOnly": true
3502
- },
3503
- "description": {
3504
- "type": "string"
3505
- },
3506
- "path": {
3507
- "type": "string"
3508
- },
3509
- "dependents": {
3510
- "type": "array",
3511
- "items": {
3512
- "type": "integer"
3513
- }
3514
- },
3515
- "updated_at": {
3516
- "type": "string",
3517
- "format": "date-time"
3518
- },
3519
- "data_hash": {
3520
- "type": "string"
3521
- },
3522
- "created_at": {
3523
- "type": "string",
3524
- "format": "date-time"
3525
- },
3526
- "user_id": {
3527
- "type": "integer"
3528
- },
3529
- "schema": {
3530
- "type": "string"
3531
- },
3532
- "name": {
3533
- "type": "string"
3534
- },
3535
- "is_dir": {}
3536
- }
3537
- },
3538
- "CaseEditRequest": {
3539
- "type": "object",
3540
- "properties": {
3541
- "name": {
3542
- "type": "string"
3543
- },
3544
- "description": {
3545
- "type": "string"
3546
- },
3547
- "parent_id": {
3548
- "type": "integer",
3549
- "x-nullable": true
3550
- }
3551
- }
3552
- },
3553
- "CaseBase": {
3554
- "type": "object",
3555
- "properties": {
3556
- "id": {
3557
- "type": "integer"
3558
- },
3559
- "solution_hash": {
3560
- "type": "string"
3561
- },
3562
- "indicators": {
3563
- "readOnly": true
3564
- },
3565
- "description": {
3566
- "type": "string"
3567
- },
3568
- "path": {
3569
- "type": "string"
3570
- },
3571
- "dependents": {
3572
- "type": "array",
3573
- "items": {
3574
- "type": "integer"
3575
- }
3576
- },
3577
- "solution_checks": {},
3578
- "updated_at": {
3579
- "type": "string",
3580
- "format": "date-time"
3581
- },
3582
- "solution": {},
3583
- "data_hash": {
3584
- "type": "string"
3585
- },
3586
- "data": {},
3587
- "created_at": {
3588
- "type": "string",
3589
- "format": "date-time"
3590
- },
3591
- "user_id": {
3592
- "type": "integer"
3593
- },
3594
- "schema": {
3595
- "type": "string"
3596
- },
3597
- "name": {
3598
- "type": "string"
3599
- },
3600
- "checks": {},
3601
- "is_dir": {}
3602
- }
3603
- },
3604
- "CaseToInstanceResponse": {
3605
- "type": "object",
3606
- "properties": {
3607
- "id": {
3608
- "type": "string"
3609
- },
3610
- "schema": {
3611
- "type": "string"
3612
- }
3613
- },
3614
- "required": [
3615
- "id",
3616
- "schema"
3617
- ]
3618
- },
3619
- "BasePatchOperation": {
3620
- "type": "object",
3621
- "properties": {
3622
- "value": {},
3623
- "op": {
3624
- "type": "string"
3625
- },
3626
- "path": {
3627
- "type": "string"
3628
- }
3629
- },
3630
- "required": [
3631
- "op",
3632
- "path"
3633
- ]
3634
- },
3635
- "CaseCompareResponse": {
3636
- "type": "object",
3637
- "properties": {
3638
- "solution_patch": {
3639
- "type": "array",
3640
- "items": {
3641
- "$ref": "#/definitions/BasePatchOperation"
3642
- }
3643
- },
3644
- "data_patch": {
3645
- "type": "array",
3646
- "items": {
3647
- "$ref": "#/definitions/BasePatchOperation"
3648
- }
3649
- }
3650
- }
3651
- },
3652
- "ActionsResponse": {
3653
- "type": "object",
3654
- "properties": {
3655
- "id": {
3656
- "type": "integer"
3657
- },
3658
- "name": {
3659
- "readOnly": true
3660
- }
3661
- }
3662
- },
3663
- "PermissionViewRoleRequest": {
3664
- "type": "object",
3665
- "properties": {
3666
- "action_id": {
3667
- "type": "integer"
3668
- },
3669
- "api_view_id": {
3670
- "type": "integer"
3671
- },
3672
- "role_id": {
3673
- "type": "integer"
3674
- }
3675
- }
3676
- },
3677
- "PermissionViewRoleResponse": {
3678
- "type": "object",
3679
- "properties": {
3680
- "id": {
3681
- "type": "integer"
3682
- },
3683
- "api_view_id": {
3684
- "type": "integer"
3685
- },
3686
- "action_id": {
3687
- "type": "integer"
3688
- },
3689
- "api_view": {
3690
- "readOnly": true
3691
- },
3692
- "action": {
3693
- "readOnly": true
3694
- },
3695
- "role": {
3696
- "readOnly": true
3697
- },
3698
- "role_id": {
3699
- "type": "integer"
3700
- }
3701
- }
3702
- },
3703
- "PermissionViewRoleEditRequest": {
3704
- "type": "object",
3705
- "properties": {
3706
- "api_view_id": {
3707
- "type": "integer"
3708
- },
3709
- "action_id": {
3710
- "type": "integer"
3711
- },
3712
- "api_view": {
3713
- "readOnly": true
3714
- },
3715
- "action": {
3716
- "readOnly": true
3717
- },
3718
- "role": {
3719
- "readOnly": true
3720
- },
3721
- "role_id": {
3722
- "type": "integer"
3723
- }
3724
- }
3725
- },
3726
- "RolesRequest": {
3727
- "type": "object",
3728
- "properties": {
3729
- "name": {
3730
- "type": "string"
3731
- }
3732
- }
3733
- },
3734
- "RolesResponse": {
3735
- "type": "object",
3736
- "properties": {
3737
- "id": {
3738
- "type": "integer"
3739
- },
3740
- "name": {
3741
- "type": "string"
3742
- }
3743
- }
3744
- },
3745
- "ViewResponse": {
3746
- "type": "object",
3747
- "properties": {
3748
- "id": {
3749
- "type": "integer"
3750
- },
3751
- "name": {
3752
- "readOnly": true
3753
- },
3754
- "description": {
3755
- "type": "string"
3756
- },
3757
- "url_rule": {
3758
- "type": "string"
3759
- }
3760
- }
3761
- },
3762
- "UserRoleRequest": {
3763
- "type": "object",
3764
- "properties": {
3765
- "user_id": {
3766
- "type": "integer"
3767
- },
3768
- "role_id": {
3769
- "type": "integer"
3770
- }
3771
- }
3772
- },
3773
- "UserRoleResponse": {
3774
- "type": "object",
3775
- "properties": {
3776
- "id": {
3777
- "type": "integer"
3778
- },
3779
- "user_id": {
3780
- "type": "integer"
3781
- },
3782
- "user": {
3783
- "readOnly": true
3784
- },
3785
- "role": {
3786
- "readOnly": true
3787
- },
3788
- "role_id": {
3789
- "type": "integer"
3790
- }
3791
- }
3792
- },
3793
- "RecoverPasswordRequest": {
3794
- "type": "object",
3795
- "properties": {
3796
- "email": {
3797
- "type": "string"
3798
- }
3799
- },
3800
- "required": [
3801
- "email"
3802
- ]
3803
- },
3804
- "Report": {
3805
- "type": "object",
3806
- "properties": {
3807
- "id": {
3808
- "type": "integer",
3809
- "readOnly": true
3810
- },
3811
- "description": {
3812
- "type": "string"
3813
- },
3814
- "updated_at": {
3815
- "type": "string",
3816
- "format": "date-time",
3817
- "readOnly": true
3818
- },
3819
- "file_url": {
3820
- "type": "string"
3821
- },
3822
- "deleted_at": {
3823
- "type": "string",
3824
- "format": "date-time",
3825
- "readOnly": true
3826
- },
3827
- "user_id": {
3828
- "type": "integer"
3829
- },
3830
- "created_at": {
3831
- "type": "string",
3832
- "format": "date-time",
3833
- "readOnly": true
3834
- },
3835
- "name": {
3836
- "type": "string"
3837
- },
3838
- "state_message": {
3839
- "type": "string"
3840
- },
3841
- "state": {
3842
- "type": "integer"
3843
- },
3844
- "execution_id": {
3845
- "type": "string"
3846
- }
3847
- },
3848
- "required": [
3849
- "execution_id",
3850
- "name"
3851
- ]
3852
- }
3853
- }
3854
- }