15
15
license :
16
16
name : AGPL v3 / Database Lab License
17
17
url : https://github.com/postgres-ai/database-lab-engine/blob/master/LICENSE
18
- version : 3.4 .0
18
+ version : 3.5 .0
19
19
externalDocs :
20
20
description : DBLab Docs
21
21
url : https://gitlab.com/postgres-ai/docs/tree/master/docs/database-lab
@@ -484,7 +484,7 @@ paths:
484
484
schema :
485
485
$ref : " #/components/schemas/Error"
486
486
487
- /observation/download/{artifact_type}/{clone_id}/{session_id} :
487
+ /observation/download :
488
488
get :
489
489
tags :
490
490
- Observation
@@ -497,27 +497,27 @@ paths:
497
497
schema :
498
498
type : string
499
499
required : true
500
- - in : path
500
+ - in : query
501
501
required : true
502
502
name : " artifact_type"
503
503
schema :
504
504
type : " string"
505
505
description : " Type of the requested artifact"
506
- - in : path
506
+ - in : query
507
507
required : true
508
508
name : " clone_id"
509
509
schema :
510
510
type : " string"
511
511
description : " Clone ID"
512
- - in : path
512
+ - in : query
513
513
required : true
514
514
name : " session_id"
515
515
schema :
516
516
type : " string"
517
517
description : " Session ID"
518
518
responses :
519
519
200 :
520
- description : Downloaded the specified artificed of the specified
520
+ description : Downloaded the specified artifact of the specified
521
521
observation session and clone
522
522
400 :
523
523
description : " Bad request"
@@ -558,7 +558,7 @@ paths:
558
558
content :
559
559
application/json :
560
560
schema :
561
- $ref : ' #/components/schemas/Instance '
561
+ $ref : " #/components/schemas/Error "
562
562
example :
563
563
code : " UNAUTHORIZED"
564
564
message : " Check your verification token."
@@ -613,7 +613,7 @@ paths:
613
613
content :
614
614
application/json :
615
615
schema :
616
- $ref : ' #/components/schemas/Instance '
616
+ $ref : " #/components/schemas/Error "
617
617
example :
618
618
code : " UNAUTHORIZED"
619
619
message : " Check your verification token."
@@ -660,7 +660,7 @@ paths:
660
660
content :
661
661
application/json :
662
662
schema :
663
- $ref : ' #/components/schemas/Instance '
663
+ $ref : " #/components/schemas/Error "
664
664
example :
665
665
code : " UNAUTHORIZED"
666
666
message : " Check your verification token."
@@ -693,7 +693,7 @@ paths:
693
693
content :
694
694
application/json :
695
695
schema :
696
- $ref : ' #/components/schemas/Instance '
696
+ $ref : " #/components/schemas/Error "
697
697
example :
698
698
code : " UNAUTHORIZED"
699
699
message : " Check your verification token."
@@ -738,7 +738,7 @@ paths:
738
738
content :
739
739
application/json :
740
740
schema :
741
- $ref : ' #/components/schemas/Instance '
741
+ $ref : " #/components/schemas/Error "
742
742
example :
743
743
code : " UNAUTHORIZED"
744
744
message : " Check your verification token."
@@ -762,6 +762,76 @@ paths:
762
762
application/json :
763
763
schema :
764
764
$ref : " #/components/schemas/WSToken"
765
+ /admin/billing-status :
766
+ get :
767
+ tags :
768
+ - Admin
769
+ summary : Checks billing status
770
+ description : " "
771
+ operationId : billingStatus
772
+ parameters :
773
+ - in : header
774
+ name : Verification-Token
775
+ schema :
776
+ type : string
777
+ required : true
778
+ responses :
779
+ 200 :
780
+ description : " Successful operation"
781
+ content :
782
+ application/json :
783
+ schema :
784
+ $ref : " #/components/schemas/BillingStatus"
785
+ 400 :
786
+ description : " Bad request"
787
+ content :
788
+ application/json :
789
+ schema :
790
+ $ref : " #/components/schemas/Error"
791
+ 401 :
792
+ description : Unauthorized access
793
+ content :
794
+ application/json :
795
+ schema :
796
+ $ref : " #/components/schemas/Error"
797
+ example :
798
+ code : " UNAUTHORIZED"
799
+ message : " Check your verification token."
800
+ /admin/activate :
801
+ post :
802
+ tags :
803
+ - Admin
804
+ summary : " Activate billing"
805
+ description : " Activates billing and sends usage statistics of the instance"
806
+ operationId : activateBilling
807
+ parameters :
808
+ - in : header
809
+ name : Verification-Token
810
+ schema :
811
+ type : string
812
+ required : true
813
+ responses :
814
+ 200 :
815
+ description : " Successful operation"
816
+ content :
817
+ application/json :
818
+ schema :
819
+ $ref : " #/components/schemas/Engine"
820
+ 400 :
821
+ description : " Bad request"
822
+ content :
823
+ application/json :
824
+ schema :
825
+ $ref : " #/components/schemas/Error"
826
+ 401 :
827
+ description : Unauthorized access
828
+ content :
829
+ application/json :
830
+ schema :
831
+ $ref : " #/components/schemas/Error"
832
+ example :
833
+ code : " UNAUTHORIZED"
834
+ message : " Check your verification token."
765
835
766
836
components :
767
837
schemas :
@@ -1245,7 +1315,6 @@ components:
1245
1315
type : " string"
1246
1316
dbVersion :
1247
1317
type : " integer"
1248
- required : false
1249
1318
tuningParams :
1250
1319
type : " object"
1251
1320
additionalProperties :
0 commit comments