From bdd88dd50707a46772c1c0082699b10647fe0420 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Wed, 14 Feb 2024 16:28:00 +0100 Subject: [PATCH 1/3] [Connector API] Update postman collection --- resources/.DS_Store | Bin 0 -> 6148 bytes .../Connectors API.postman_collection.json | 261 +++++++++++++++++- 2 files changed, 259 insertions(+), 2 deletions(-) create mode 100644 resources/.DS_Store diff --git a/resources/.DS_Store b/resources/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b82200b771fdf585216fcda82acba0ee4abbb088 GIT binary patch literal 6148 zcmeHKIZgvX5Ud6VmXIumg!2V{FtW@G`~VJ{0LfwzhI}L5#nY%h0<49|BC)DhJvGzY zHKVCudmDhQK6W?262P49h)*A;=I`Anc2N-{(z(YIws^;YHykF}zXzPVAZx%2pP&3Y zJm3}2yTf+>I1GDFlt}?8AO)m=6p#WZD^MkMes%Ir+CU0Ofpb&9zYmS>*bB$R_;hfH z7JxWoIE?e?C5X)f#9lZiGD5SY5|e7xVp!4{ZA`l3opmlk(7DO=X~D_$HbsB9(1C923!}J6!>oiz5x+17ghiO literal 0 HcmV?d00001 diff --git a/resources/connectors_api/Connectors API.postman_collection.json b/resources/connectors_api/Connectors API.postman_collection.json index 5754879a4..d56aa36f5 100644 --- a/resources/connectors_api/Connectors API.postman_collection.json +++ b/resources/connectors_api/Connectors API.postman_collection.json @@ -1,9 +1,9 @@ { "info": { - "_postman_id": "21004caa-09a2-418f-91c3-2b191759bc6b", + "_postman_id": "727062b9-850d-4c47-a02c-7142cd97d082", "name": "Connectors API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "31300999" + "_exporter_id": "31631400" }, "item": [ { @@ -192,6 +192,75 @@ } }, "response": [] + }, + { + "name": "List Connectors with IndexNames Filtering", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{ES_HOST_PORT}}/_connector?index_name=some_index", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector" + ], + "query": [ + { + "key": "index_name", + "value": "some_index" + } + ] + } + }, + "response": [] + }, + { + "name": "List Connectors with Service Types", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{ES_HOST_PORT}}/_connector?service_type=google_drive,sharepoint_online", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector" + ], + "query": [ + { + "key": "service_type", + "value": "google_drive,sharepoint_online" + } + ] + } + }, + "response": [] + }, + { + "name": "List Connectors with Names", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{ES_HOST_PORT}}/_connector?connector_name=my-connector", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector" + ], + "query": [ + { + "key": "connector_name", + "value": "my-connector" + } + ] + } + }, + "response": [] } ] }, @@ -857,6 +926,62 @@ } }, "response": [] + }, + { + "name": "Clear Configuration", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"configuration\": {}\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/1234/_configuration", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "1234", + "_configuration" + ] + } + }, + "response": [] + }, + { + "name": "Update Configuration Value", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"values\": {\n \"tenant_id\": \"tenant\",\n \"tenant_name\": \"enterprisesearch\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/spo/_configuration", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "spo", + "_configuration" + ] + } + }, + "response": [] } ] }, @@ -1057,6 +1182,138 @@ "response": [] } ] + }, + { + "name": "Update Service Type", + "item": [ + { + "name": "Update Service Type", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"service_type\": \"sharepoint_online\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/xd/_service_type", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "xd", + "_service_type" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Update Index Name", + "item": [ + { + "name": "Update Index Name", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"index_name\": \"search-test-index-2\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/1234/_index_name", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "1234", + "_index_name" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Update Native", + "item": [ + { + "name": "Update Native", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"is_native\": false\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/1234/_native", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "1234", + "_native" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Update Status", + "item": [ + { + "name": "Update Status", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"status\": \"needs_configuration\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{ES_HOST_PORT}}/_connector/1234/_status", + "host": [ + "{{ES_HOST_PORT}}" + ], + "path": [ + "_connector", + "1234", + "_status" + ] + } + }, + "response": [] + } + ] } ], "auth": { From 6b6be3d6a2ee56518b80bf5f4f9f5447b7391050 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Wed, 14 Feb 2024 16:29:52 +0100 Subject: [PATCH 2/3] Remove vscode file --- resources/.DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 resources/.DS_Store diff --git a/resources/.DS_Store b/resources/.DS_Store deleted file mode 100644 index b82200b771fdf585216fcda82acba0ee4abbb088..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKIZgvX5Ud6VmXIumg!2V{FtW@G`~VJ{0LfwzhI}L5#nY%h0<49|BC)DhJvGzY zHKVCudmDhQK6W?262P49h)*A;=I`Anc2N-{(z(YIws^;YHykF}zXzPVAZx%2pP&3Y zJm3}2yTf+>I1GDFlt}?8AO)m=6p#WZD^MkMes%Ir+CU0Ofpb&9zYmS>*bB$R_;hfH z7JxWoIE?e?C5X)f#9lZiGD5SY5|e7xVp!4{ZA`l3opmlk(7DO=X~D_$HbsB9(1C923!}J6!>oiz5x+17ghiO From aee5dff78eb9c1d97f004ac08d71324e033af146 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Thu, 15 Feb 2024 17:04:11 +0100 Subject: [PATCH 3/3] Add parameter for connector id --- .../Connectors API.postman_collection.json | 73 ++++++++++--------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/resources/connectors_api/Connectors API.postman_collection.json b/resources/connectors_api/Connectors API.postman_collection.json index d56aa36f5..34297b803 100644 --- a/resources/connectors_api/Connectors API.postman_collection.json +++ b/resources/connectors_api/Connectors API.postman_collection.json @@ -15,13 +15,13 @@ "method": "PUT", "header": [], "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_check_in", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_check_in", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_check_in" ] } @@ -48,13 +48,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234" + "{{CONNECTOR_ID}}" ] } }, @@ -97,13 +97,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234" + "{{CONNECTOR_ID}}" ] } }, @@ -120,13 +120,13 @@ "method": "GET", "header": [], "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234" + "{{CONNECTOR_ID}}" ] } }, @@ -914,13 +914,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_configuration", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_configuration", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_configuration" ] } @@ -942,13 +942,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_configuration", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_configuration", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_configuration" ] } @@ -970,13 +970,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/spo/_configuration", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_configuration", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "spo", + "{{CONNECTOR_ID}}", "_configuration" ] } @@ -1003,13 +1003,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_scheduling", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_scheduling", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_scheduling" ] } @@ -1036,13 +1036,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_error", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_error", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_error" ] } @@ -1069,13 +1069,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_pipeline", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_pipeline", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_pipeline" ] } @@ -1102,13 +1102,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_last_sync", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_last_sync", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_last_sync" ] } @@ -1135,13 +1135,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_name", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_name", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_name" ] } @@ -1168,13 +1168,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_filtering", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_filtering", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_filtering" ] } @@ -1201,13 +1201,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/xd/_service_type", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_service_type", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "xd", + "{{CONNECTOR_ID}}", "_service_type" ] } @@ -1234,13 +1234,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_index_name", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_index_name", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_index_name" ] } @@ -1267,13 +1267,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_native", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_native", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_native" ] } @@ -1300,13 +1300,13 @@ } }, "url": { - "raw": "{{ES_HOST_PORT}}/_connector/1234/_status", + "raw": "{{ES_HOST_PORT}}/_connector/{{CONNECTOR_ID}}/_status", "host": [ "{{ES_HOST_PORT}}" ], "path": [ "_connector", - "1234", + "{{CONNECTOR_ID}}", "_status" ] } @@ -1365,6 +1365,11 @@ "key": "ES_PASSWORD", "value": "password", "type": "string" + }, + { + "key": "CONNECTOR_ID", + "value": "1234", + "type": "string" } ] } \ No newline at end of file