Skip to content

Commit 352565a

Browse files
authored
Rel 984674 import service staging governance correct loadfile paths in relativity import samples openapi (#29)
* REL-984674 OpenAPI doc changes
1 parent bbd1562 commit 352565a

1 file changed

Lines changed: 132 additions & 91 deletions

File tree

OpenAPI/openapidoc.json

Lines changed: 132 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,121 @@
624624
}
625625
}
626626
},
627+
"/import-service/v1/workspaces/{workspaceID}/import-jobs/{importJobID}/sources/{sourceID}/delete": {
628+
"post": {
629+
"tags": [
630+
"Import Source Module"
631+
],
632+
"summary": "",
633+
"description": "Deletes the parent folder of the data source's load file if it is located in \\StructuredData\\Import\\.",
634+
"operationId": "Import.Services.V1.IImportSourceController.DeleteParentFolderAsync",
635+
"parameters": [
636+
{
637+
"$ref": "#/components/parameters/X-CSRF-Header"
638+
},
639+
{
640+
"$ref": "#/components/parameters/workspaceID"
641+
},
642+
{
643+
"$ref": "#/components/parameters/importJobID"
644+
},
645+
{
646+
"$ref": "#/components/parameters/sourceID"
647+
}
648+
],
649+
"requestBody": {
650+
"description": "",
651+
"content": {
652+
"application/json": {}
653+
},
654+
"required": false
655+
},
656+
"responses": {
657+
"200": {
658+
"description": "Successful operation",
659+
"content": {
660+
"application/json": {
661+
"schema": {
662+
"$ref": "#/components/schemas/Response"
663+
}
664+
}
665+
}
666+
},
667+
"400": {
668+
"description": "Bad Request. Validation exception."
669+
}
670+
}
671+
}
672+
},
673+
"/import-service/v1/workspaces/{workspaceID}/import-jobs/location": {
674+
"get": {
675+
"tags": [
676+
"Import Job Module"
677+
],
678+
"summary": "",
679+
"description": "Gets the default location for the import files upload.",
680+
"operationId": "Import.Services.V1.ImportJobController.GetDefaultLocationForWorkspaceAsync",
681+
"parameters": [
682+
{
683+
"$ref": "#/components/parameters/X-CSRF-Header"
684+
},
685+
{
686+
"$ref": "#/components/parameters/workspaceID"
687+
}
688+
],
689+
"responses": {
690+
"200": {
691+
"description": "Successful operation",
692+
"content": {
693+
"application/json": {
694+
"schema": {
695+
"$ref": "#/components/schemas/ValueResponse.String"
696+
}
697+
}
698+
}
699+
},
700+
"400": {
701+
"description": "Bad Request. Validation exception."
702+
}
703+
}
704+
}
705+
},
706+
"/import-service/v1/workspaces/{workspaceID}/import-jobs/{importJobID}/location": {
707+
"get": {
708+
"tags": [
709+
"Import Job Module"
710+
],
711+
"summary": "",
712+
"description": "Gets the default location for the import files upload.",
713+
"operationId": "Import.Services.V1.ImportJobController.GetDefaultLocationForJobAsync",
714+
"parameters": [
715+
{
716+
"$ref": "#/components/parameters/X-CSRF-Header"
717+
},
718+
{
719+
"$ref": "#/components/parameters/workspaceID"
720+
},
721+
{
722+
"$ref": "#/components/parameters/importJobID"
723+
}
724+
],
725+
"responses": {
726+
"200": {
727+
"description": "Successful operation",
728+
"content": {
729+
"application/json": {
730+
"schema": {
731+
"$ref": "#/components/schemas/ValueResponse.String"
732+
}
733+
}
734+
}
735+
},
736+
"400": {
737+
"description": "Bad Request. Validation exception."
738+
}
739+
}
740+
}
741+
},
627742
"/import-service/v1/workspaces/{workspaceID}/import-jobs/{importJobID}/sources/": {
628743
"get": {
629744
"tags": [
@@ -865,47 +980,6 @@
865980
}
866981
}
867982
}
868-
},
869-
"/import-private/v1/DiagnosticJob/Execute": {
870-
"post": {
871-
"tags": [
872-
"Diagnostic Job Module"
873-
],
874-
"summary": "",
875-
"description": "Create, configure, and execute simple import job for diagnostic purpose.",
876-
"operationId": "Import.Services.V1.IDiagnosticJobController.ExecuteAsync",
877-
"parameters": [
878-
{
879-
"$ref": "#/components/parameters/X-CSRF-Header"
880-
}
881-
],
882-
"requestBody": {
883-
"description": "",
884-
"content": {
885-
"application/json": {
886-
"schema": {
887-
"$ref": "#/components/schemas/DiagnosticJobSettings"
888-
}
889-
}
890-
},
891-
"required": true
892-
},
893-
"responses": {
894-
"200": {
895-
"description": "Successful operation",
896-
"content": {
897-
"application/json": {
898-
"schema": {
899-
"$ref": "#/components/schemas/DiagnosticJobResponse"
900-
}
901-
}
902-
}
903-
},
904-
"400": {
905-
"description": "Bad Request. Validation exception."
906-
}
907-
}
908-
}
909983
}
910984
},
911985
"components": {
@@ -1138,10 +1212,17 @@
11381212
"type": "object",
11391213
"properties": {
11401214
"State": {
1141-
"$ref": "#/components/schemas/DataSourceState",
1142-
"description": "Indicates in what state currently DataSource is."
1215+
"$ref": "#/components/schemas/DataSourceState"
1216+
},
1217+
"DataSourceSettings": { "$ref": "#/components/schemas/DataSourceSettings" },
1218+
"IsParentFolderDeleted": {
1219+
"type": "boolean",
1220+
"description": "Gets or sets a value indicating whether the source load file's parent folder is deleted.",
1221+
"example": true
11431222
},
1144-
"DataSourceSettings": { "$ref": "#/components/schemas/DataSourceSettings" }
1223+
"JobLevelErrors": {
1224+
"$ref": "#/components/schemas/ImportError"
1225+
}
11451226
}
11461227
},
11471228
"ValueResponse.ImportDocumentSettings": {
@@ -1249,50 +1330,6 @@
12491330
}
12501331
}
12511332
},
1252-
"DiagnosticJobResponse": {
1253-
"type": "object",
1254-
"properties": {
1255-
"InformationMessage": {
1256-
"type": "string",
1257-
"example": "Diagnostic Import Job was properly started. Use the dedicated api endpoints to monitor job progress and state."
1258-
},
1259-
"IsSuccess": {
1260-
"type": "boolean",
1261-
"example": true
1262-
},
1263-
"ErrorMessage": {
1264-
"type": "string",
1265-
"example": ""
1266-
},
1267-
"ErrorCode": {
1268-
"type": "string",
1269-
"example": ""
1270-
},
1271-
"ImportJobID": {
1272-
"description": "Import job identification GUID number.",
1273-
"type": "string",
1274-
"format": "uuid",
1275-
"example": "00000000-0000-0000-0000-000000000000"
1276-
}
1277-
}
1278-
},
1279-
"DiagnosticJobSettings": {
1280-
"type": "object",
1281-
"properties": {
1282-
"WorkspaceID": {
1283-
"type": "integer",
1284-
"description": "Indicates the WorkspaceID for which the import will be executed. If not provided the Relativity Starter Template workspace is used.",
1285-
"nullable": true,
1286-
"example": 1003663
1287-
},
1288-
"FileSharePath": {
1289-
"type": "string",
1290-
"description": "Custom provided fileshare location where dataset (load file) will be generated. When not provided the default fileshare location for selected workspace is used.",
1291-
"nullable": true,
1292-
"example": "\\\\files\\T001\\StructuredData\\Import\\EDDS1015024\\DiagnosticJob"
1293-
}
1294-
}
1295-
},
12961333
"ImportDocumentSettings": {
12971334
"type": "object",
12981335
"properties": {
@@ -1549,7 +1586,7 @@
15491586
"FileTypeSettings": {
15501587
"type": "object",
15511588
"properties": {
1552-
"ValidateFileType": {
1589+
"DoNotValidateFileType": {
15531590
"type": "boolean",
15541591
"description": "Indicates if file type validation should be run in import service.",
15551592
"example": false
@@ -1578,7 +1615,7 @@
15781615
"type": "boolean",
15791616
"example": true
15801617
},
1581-
"ValidateFileType": {
1618+
"DoNotValidateFileType": {
15821619
"type": "boolean",
15831620
"example": true
15841621
},
@@ -1657,6 +1694,10 @@
16571694
"LineNumber": {
16581695
"type": "integer",
16591696
"example": 1
1697+
},
1698+
"ObjectIdentifier": {
1699+
"type": "string",
1700+
"description": "Document identifier"
16601701
}
16611702
}
16621703
},
@@ -1814,4 +1855,4 @@
18141855
}
18151856
}
18161857
}
1817-
}
1858+
}

0 commit comments

Comments
 (0)