6
6
},
7
7
"description" : " OpenAPI specification for MongoDB Relational Migrator tool" ,
8
8
"title" : " MongoDB Relational Migrator REST API" ,
9
- "version" : " 1.9 .0"
9
+ "version" : " 1.10 .0"
10
10
},
11
11
"servers" : [
12
12
{
524
524
]
525
525
}
526
526
},
527
+ "/project/{projectId}/queries/bulk-convert" : {
528
+ "delete" : {
529
+ "operationId" : " stopBulkQueryConversion" ,
530
+ "description" : " Stop a running bulk query conversion job" ,
531
+ "parameters" : [
532
+ {
533
+ "name" : " projectId" ,
534
+ "in" : " path" ,
535
+ "description" : " Project ID" ,
536
+ "required" : true ,
537
+ "schema" : {
538
+ "$ref" : " #/components/schemas/id"
539
+ }
540
+ }
541
+ ],
542
+ "responses" : {
543
+ "200" : {
544
+ "description" : " OK" ,
545
+ "content" : {
546
+ "application/json" : {
547
+ "schema" : {
548
+ "$ref" : " #/components/schemas/bulk-query-conversion-info"
549
+ }
550
+ }
551
+ }
552
+ },
553
+ "404" : {
554
+ "description" : " Not found" ,
555
+ "content" : {
556
+ "application/json" : {
557
+ "schema" : {
558
+ "$ref" : " #/components/schemas/error-response"
559
+ }
560
+ }
561
+ }
562
+ }
563
+ },
564
+ "tags" : [
565
+ " Query"
566
+ ]
567
+ },
568
+ "get" : {
569
+ "operationId" : " getBulkQueryConversion" ,
570
+ "description" : " Get the status of a bulk query conversion job" ,
571
+ "parameters" : [
572
+ {
573
+ "name" : " projectId" ,
574
+ "in" : " path" ,
575
+ "description" : " Project ID" ,
576
+ "required" : true ,
577
+ "schema" : {
578
+ "$ref" : " #/components/schemas/id"
579
+ }
580
+ }
581
+ ],
582
+ "responses" : {
583
+ "200" : {
584
+ "description" : " OK" ,
585
+ "content" : {
586
+ "application/json" : {
587
+ "schema" : {
588
+ "$ref" : " #/components/schemas/bulk-query-conversion-info"
589
+ }
590
+ }
591
+ }
592
+ },
593
+ "404" : {
594
+ "description" : " Not found" ,
595
+ "content" : {
596
+ "application/json" : {
597
+ "schema" : {
598
+ "$ref" : " #/components/schemas/error-response"
599
+ }
600
+ }
601
+ }
602
+ }
603
+ },
604
+ "tags" : [
605
+ " Query"
606
+ ]
607
+ },
608
+ "post" : {
609
+ "operationId" : " createBulkQueryConversion" ,
610
+ "description" : " Create a bulk query conversion job" ,
611
+ "parameters" : [
612
+ {
613
+ "name" : " projectId" ,
614
+ "in" : " path" ,
615
+ "description" : " Project ID" ,
616
+ "required" : true ,
617
+ "schema" : {
618
+ "$ref" : " #/components/schemas/id"
619
+ }
620
+ }
621
+ ],
622
+ "requestBody" : {
623
+ "content" : {
624
+ "application/json" : {
625
+ "schema" : {
626
+ "$ref" : " #/components/schemas/bulk-query-conversion-request"
627
+ }
628
+ }
629
+ }
630
+ },
631
+ "responses" : {
632
+ "200" : {
633
+ "description" : " OK" ,
634
+ "content" : {
635
+ "application/json" : {
636
+ "schema" : {
637
+ "$ref" : " #/components/schemas/bulk-query-conversion-info"
638
+ }
639
+ }
640
+ }
641
+ },
642
+ "497" : {
643
+ "description" : " Operation is not allowed when there are existing query conversions jobs" ,
644
+ "content" : {
645
+ "application/json" : {
646
+ "schema" : {
647
+ "$ref" : " #/components/schemas/error-response"
648
+ }
649
+ }
650
+ }
651
+ }
652
+ },
653
+ "tags" : [
654
+ " Query"
655
+ ]
656
+ }
657
+ },
527
658
"/project/{projectId}/queries/{queryId}" : {
528
659
"delete" : {
529
660
"operationId" : " deleteQuery" ,
561
692
}
562
693
}
563
694
}
695
+ },
696
+ "497" : {
697
+ "description" : " Operation is not allowed when there are existing query conversions jobs" ,
698
+ "content" : {
699
+ "application/json" : {
700
+ "schema" : {
701
+ "$ref" : " #/components/schemas/error-response"
702
+ }
703
+ }
704
+ }
564
705
}
565
706
},
566
707
"tags" : [
679
820
}
680
821
}
681
822
}
823
+ },
824
+ "497" : {
825
+ "description" : " Operation is not allowed when there are existing query conversions jobs" ,
826
+ "content" : {
827
+ "application/json" : {
828
+ "schema" : {
829
+ "$ref" : " #/components/schemas/error-response"
830
+ }
831
+ }
832
+ }
682
833
}
683
834
},
684
835
"tags" : [
689
840
},
690
841
"components" : {
691
842
"schemas" : {
843
+ "id" : {
844
+ "type" : " string" ,
845
+ "pattern" : " ^[A-Za-z0-9\\ -]+$"
846
+ },
692
847
"error-response" : {
693
848
"type" : " object" ,
694
849
"properties" : {
712
867
" timestamp"
713
868
]
714
869
},
715
- "id" : {
716
- "type" : " string" ,
717
- "pattern" : " ^[A-Za-z0-9\\ -]+$"
718
- },
719
870
"jdbc-connection-details" : {
720
871
"type" : " object" ,
721
872
"properties" : {
733
884
},
734
885
"password" : {
735
886
"type" : " string"
887
+ },
888
+ "savePassword" : {
889
+ "type" : " boolean"
890
+ },
891
+ "existingConnectionId" : {
892
+ "type" : " string"
736
893
}
737
894
},
738
895
"additionalProperties" : false ,
754
911
"description" : " Atlas projectId" ,
755
912
"type" : " string"
756
913
},
914
+ "savePassword" : {
915
+ "type" : " boolean"
916
+ },
757
917
"projectName" : {
758
918
"description" : " Atlas project name" ,
759
919
"type" : " string"
765
925
"hasTimeSeriesCollection" : {
766
926
"type" : " boolean" ,
767
927
"default" : false
928
+ },
929
+ "existingConnectionId" : {
930
+ "type" : " string"
768
931
}
769
932
},
770
933
"additionalProperties" : false ,
1076
1239
" projectId"
1077
1240
]
1078
1241
},
1242
+ "bulk-query-conversion-info" : {
1243
+ "type" : " object" ,
1244
+ "properties" : {
1245
+ "pendingQueries" : {
1246
+ "type" : " array" ,
1247
+ "items" : {
1248
+ "type" : " string"
1249
+ }
1250
+ },
1251
+ "runningQueries" : {
1252
+ "type" : " array" ,
1253
+ "items" : {
1254
+ "type" : " string"
1255
+ }
1256
+ },
1257
+ "completedQueries" : {
1258
+ "type" : " array" ,
1259
+ "items" : {
1260
+ "type" : " string"
1261
+ }
1262
+ },
1263
+ "failedQueries" : {
1264
+ "type" : " array" ,
1265
+ "items" : {
1266
+ "type" : " string"
1267
+ }
1268
+ }
1269
+ },
1270
+ "additionalProperties" : false ,
1271
+ "required" : [
1272
+ " completedQueries" ,
1273
+ " failedQueries" ,
1274
+ " pendingQueries" ,
1275
+ " runningQueries"
1276
+ ]
1277
+ },
1278
+ "bulk-query-conversion-request" : {
1279
+ "type" : " object" ,
1280
+ "properties" : {
1281
+ "language" : {
1282
+ "$ref" : " #/components/schemas/convert-query-language-type"
1283
+ },
1284
+ "queries" : {
1285
+ "type" : " array" ,
1286
+ "items" : {
1287
+ "type" : " string"
1288
+ }
1289
+ }
1290
+ },
1291
+ "additionalProperties" : false ,
1292
+ "required" : [
1293
+ " language" ,
1294
+ " queries"
1295
+ ]
1296
+ },
1079
1297
"query-details-response" : {
1080
1298
"type" : " object" ,
1081
1299
"properties" : {
1179
1397
]
1180
1398
},
1181
1399
"database-type" : {
1182
- "type" : " string" ,
1183
- "enum" : [
1184
- " ORACLE" ,
1185
- " SQL_SERVER" ,
1186
- " MYSQL" ,
1187
- " POSTGRESQL" ,
1188
- " DB2" ,
1189
- " SYBASE"
1190
- ]
1400
+ "type" : " string"
1191
1401
},
1192
1402
"migration-job-descriptor-options" : {
1193
1403
"type" : " object" ,
1411
1621
" NOT_STARTED" ,
1412
1622
" RUNNING" ,
1413
1623
" FAILED" ,
1414
- " COMPLETED"
1624
+ " COMPLETED" ,
1625
+ " PENDING"
1415
1626
]
1416
1627
},
1417
1628
"convert-query-language-type" : {
1725
1936
"name" : " Query"
1726
1937
}
1727
1938
]
1728
- }
1939
+ }
0 commit comments