{ "info": { "_postman_id": "36ef37ee-c915-4a6d-84e6-5169a58cdf2e", "name": "Search API CI/CD v1.7", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Configure collection", "item": [ { "name": "Refresh Token", "event": [ { "listen": "test", "script": { "id": "da5900b8-3c97-411e-a3db-c7e530326650", "exec": [ "// this snippet extracts the new access and id tokens", "// and puts them to environment variables", "cp = pm.environment.get(\"cloud_platform\");", "", "var data = JSON.parse(responseBody)", "pm.environment.set(\"access_token\", data.access_token);", "if (cp == \"AWS\") {", " pm.environment.set(\"id_token\", data.id_token);", "}", "// Uncomment if server returns a new refresh_token,", "// otherwise comment out to prevent overwriting it with null", "if (cp == \"Azure\") {", " pm.environment.set(\"refresh_token\", data.refresh_token);", "}" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "cfe4364b-79ab-4355-a62d-ea89f1e6b1ba", "exec": [ "cp = pm.environment.get(\"cloud_platform\");\r", "\r", "if (cp == \"GCP\") {\r", " pm.environment.set(\"Scope\", \"email openid profile\")\r", " }\r", "else {\r", " client_id = pm.environment.get(\"CLIENT_ID\");\r", " pm.environment.set(\"Scope\", client_id + \"/.default openid profile offline_access\")\r", "}" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/x-www-form-urlencoded" }, { "key": "Ocp-Apim-Subscription-Key", "type": "text", "value": "xxxxxxxx", "disabled": true } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "refresh_token", "type": "text" }, { "key": "client_id", "value": "{{CLIENT_ID}}", "description": "Supply your client id as an environment variable", "type": "text" }, { "key": "client_secret", "value": "{{CLIENT_SECRET}}", "description": "Supply your client secret as an environment variable", "type": "text" }, { "key": "refresh_token", "value": "{{refresh_token}}", "type": "text" }, { "key": "scope", "value": "{{Scope}}", "type": "text" } ] }, "url": { "raw": "{{Token_Fetch_URL}}", "host": [ "{{Token_Fetch_URL}}" ] } }, "response": [] } ], "protocolProfileBehavior": {} }, { "name": "Search", "item": [ { "name": "Queries using the input request criteria", "item": [ { "name": "A01 Search - Queries using the input request criteria success scenario", "event": [ { "listen": "test", "script": { "id": "700666c2-164a-443f-ae9f-0a79c906cc71", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "//get the record count", "try {", " let resBody = pm.response.json();", "", " let recordCount = resBody.totalCount;", " tests[\"Record count: \" + recordCount] = recordCount >= 1;", " }", "catch (e) {", " console.log(e.message);", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\" : \"{{data-partition-id}}:osdu:well-master:0.2.1\",\n \"limit\" : 30,\n \"offset\" : 0,\n \"query\" : \"data.UWI:57*\",\n \"returnedFields\" : [ \"id\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\": \"data.GeoLocation\",\n \"byBoundingBox\": {\n\t\t \"topLeft\": {\n\t\t \t\"longitude\": 4.9493408203125,\n \t\"latitude\": 52.859180945520826\n \t},\n \t\t\"bottomRight\": {\n \t\t\"longitude\": 5.1580810546875,\n \t\"latitude\": 52.75956761546834\n \t\t}\n \t}\n }\n \n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "A02 Search - Queries using the input request criteria with invalid parameters", "event": [ { "listen": "test", "script": { "id": "53dcf7e1-4c76-463a-a99a-8e8626c96a4a", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "//console.log(pm.response.json().message);", "pm.test(\"Status description - Invalid parameters were given on search request\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.message).to.equal(\"Invalid parameters were given on search request\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\" : \"{{data-partition-id}}:osdu:wellbore-master:0.2.0\",\n \"limit\" : 30,\n \"queryinvalid\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n },\n \"offset\" : 0\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "A03 Search - Queries using the input request criteria without correct permission to access the API", "event": [ { "listen": "test", "script": { "id": "9fa30199-3bc7-4467-b82f-546bf124a741", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", "});", "console.log(pm.response.json().message);", "pm.test(\"Status description - The user is not authorized to perform this action\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.message).to.equal(\"The user is not authorized to perform this action\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "common" } ], "body": { "mode": "raw", "raw": "{\n \"kind\" : \"{{data-partition-id}}:osdu:wellbore-master:0.2.0\",\n \"limit\" : 30,\n \"query\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n },\n \"offset\" : 0\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "A04 Search - Queries using the input request criteria retry", "event": [ { "listen": "test", "script": { "id": "4d9ca688-fe52-44bd-88b7-585535568f94", "exec": [ "pm.test(\"Status code is 502\", function () {", " pm.response.to.have.status(502);", "});", "pm.test(\"Status description - Search service scale-up is taking longer than expected. Wait 10 seconds and retry.\", function () {", " pm.response.to.have.status(\"Search service scale-up is taking longer than expected. Wait 10 seconds and retry.\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\" : \"common:welldb:wellbore:1.0.0\",\n \"limit\" : 30,\n \"query\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n },\n \"offset\" : 0\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "description": "The API supports full text search on string fields, range queries on date, numeric or string fields, along with geo-spatial search. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'. In addition, users must be a member of data groups to access the data.", "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Queries using the input request criteria with cursor", "item": [ { "name": "B01 Search - Queries using the input request criteria success scenario", "event": [ { "listen": "test", "script": { "id": "72f5473c-89bb-4550-8228-d5f6684fd89d", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "//console.log(pm.response.json().cursor);", "try {", " let resBody = pm.response.json();", "pm.test(\"Cursor:\"+ resBody.cursor , function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.cursor.length)>0;", "});", "//get the record count", " let recordCount = resBody.totalCount;", " tests[\"Record count: \" + recordCount] = recordCount >= 1;", " }", "catch (e) {", " console.log(e.message);", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"cursor\": \"\",\n \"kind\" : \"{{data-partition-id}}:osdu:well-master:0.2.1\",\n \"limit\" : 30,\n \"query\" : \"data.UWI:57*\",\n \"returnedFields\" : [ \"id\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\": \"data.GeoLocation\",\n \"byBoundingBox\": {\n\t\t \"topLeft\": {\n\t\t \t\"longitude\": 4.9493408203125,\n \t\"latitude\": 52.859180945520826\n \t},\n \t\t\"bottomRight\": {\n \t\t\"longitude\": 5.1580810546875,\n \t\"latitude\": 52.75956761546834\n \t\t}\n \t}\n }\n \n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query_with_cursor", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query_with_cursor" ] } }, "response": [] }, { "name": "B02 Search - Queries using the input request criteria with invalid parameters", "event": [ { "listen": "test", "script": { "id": "f96b9406-b850-464f-ba64-fc0211a67fa4", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "//console.log(pm.response.json().message);", "pm.test(\"Status description - Invalid parameters were given on search request\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.message).to.equal(\"Invalid parameters were given on search request\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"cursor\": \"\",\n \"kind\" : \"{{data-partition-id}}:osdu:wellbore-master:0.2.0\",\n \"limit\" : 30,\n \"queryinvalid\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n },\n \"offset\" : 0\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query_with_cursor", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query_with_cursor" ] } }, "response": [] }, { "name": "B03 Search - Queries using the input request criteria without correct permission to access the API", "event": [ { "listen": "test", "script": { "id": "0cc39b65-3cdf-4b1d-a432-fff0af83631b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", "});", "console.log(pm.response.json().message);", "pm.test(\"Status description - The user is not authorized to perform this action\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.message).to.equal(\"The user is not authorized to perform this action\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "common" } ], "body": { "mode": "raw", "raw": "{\n \"cursor\": \"\",\n \"kind\" : \"{{data-partition-id}}:osdu:wellbore-master:0.2.0\",\n \"limit\" : 30,\n \"query\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n }\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query_with_cursor", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query_with_cursor" ] } }, "response": [] }, { "name": "B04 Search - Queries using the input request criteria retry", "event": [ { "listen": "test", "script": { "id": "af1fe36d-e296-472c-bac3-b96f468652de", "exec": [ "pm.test(\"Status code is 502\", function () {", " pm.response.to.have.status(502);", "});", "pm.test(\"Status description - Search service scale-up is taking longer than expected. Wait 10 seconds and retry.\", function () {", " pm.response.to.have.status(\"Search service scale-up is taking longer than expected. Wait 10 seconds and retry.\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "description": "This value should be the desired data partition id.", "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\" : \"common:welldb:wellbore:1.0.0\",\n \"limit\" : 30,\n \"query\" : \"data.Basin:\\\"Ft. Worth\\\"\",\n \"returnedFields\" : [ \"data.dlLatLongWGS84\" ],\n \"queryAsOwner\" : false,\n \"spatialFilter\" : {\n \"field\" : \"data.dlLatLongWGS84\",\n \"byBoundingBox\" : {\n \"topLeft\" : {\n \"latitude\" : 34.742612,\n \"longitude\" : -101.074218\n },\n \"bottomRight\" : {\n \"latitude\" : 32.934928,\n \"longitude\" : -80.799072\n }\n }\n },\n \"cursor\" : \"\"\n}\n" }, "url": { "raw": "https://{{SEARCH_HOST}}/query_with_cursor", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query_with_cursor" ] } }, "response": [] } ], "description": "The API supports full text search on string fields, range queries on date, numeric or string fields, along with geo-spatial search. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins'. In addition, users must be a member of data groups to access the data. It can be used to retrieve large numbers of results (or even all results) from a single search request, in much the same way as you would use a cursor on a traditional database.", "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Standard [0.2.0]", "item": [ { "name": "Fulltext Search", "item": [ { "name": "C01. Fulltext Search #1", "event": [ { "listen": "test", "script": { "id": "c2ee5778-73e8-408b-9ed2-44cdb1a7d512", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Bearer {{access_token}}" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "value": "", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"BIR*\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C02. Fulltext Search #2 (Wildcard)", "event": [ { "listen": "test", "script": { "id": "75ffef8f-0d2f-45a4-9cc7-a1a6954b1a5d", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\n \"query\": \"(BIR AND 0?)\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C03. Fulltext Search #3 (Fuzzy)", "event": [ { "listen": "test", "script": { "id": "aac42500-7ff7-4564-b770-580f19f77a6f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.FacilityName:EMM~\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Field-match Search", "item": [ { "name": "C04. Get All Resources by WellID", "event": [ { "listen": "test", "script": { "id": "8b3fb8cb-2a95-424b-a88a-4d2b4f80be8a", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.WellID:\\\"srn:master-data/Well:8690:\\\"\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C05. Get All Resources by WellID (Wildcard)", "event": [ { "listen": "test", "script": { "id": "f55b2513-eba1-45d6-8192-b86b668055d6", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.WellID:(\\\"srn:master-data/Well:\\\" AND 101?)\"\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Combining Filters", "item": [ { "name": "C06. Get Wells by ResourceIDs (OR)", "event": [ { "listen": "test", "script": { "id": "f2b764b8-b3f6-4e24-950e-9729b27e2a13", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.ResourceID:(\\\"srn:master-data/Well:8690:\\\" OR \\\"srn:master-data/Well:1000:\\\")\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C07. Get Wells by ResourceID and CountryID (AND)", "event": [ { "listen": "test", "script": { "id": "2e23484c-b99e-43b8-af19-050d70c51867", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"(data.ResourceID:(\\\"srn:master-data/Well:8690:\\\" OR \\\"srn:master-data/Well:1000:\\\")) AND (data.Data.IndividualTypeProperties.CountryID: \\\"srn:master-data/GeopoliticalEntity:Netherlands:\\\")\"\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C08. Find WellLog with GR Curve (Nested)", "event": [ { "listen": "test", "script": { "id": "3eb3b12a-bd0d-493f-9bd3-a41f71a51c4f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"(data.ResourceTypeID: \\\"srn:type:work-product-component/WellLog:\\\") AND (data.Data.IndividualTypeProperties.Curves.Mnemonic: GR)\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C09. Get Markers and Trajectories for Wellbore (Children)", "event": [ { "listen": "test", "script": { "id": "a4f41504-6091-4340-8069-8a80cf343fb2", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"(data.Data.IndividualTypeProperties.WellboreID: \\\"srn:master-data/Wellbore:3687:\\\") AND (data.ResourceTypeID: (\\\"srn:type:work-product-component/WellboreTrajectory:\\\" OR \\\"srn:type:work-product-component/WellboreMarker:\\\"))\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Limits & Pagination", "item": [ { "name": "C10. Get the First Wellbore (Pagination)", "event": [ { "listen": "test", "script": { "id": "c3291520-4417-410d-b833-f510121a2d6e", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.WellID:\\\"srn:master-data/Well:3687:\\\"\",\r\n \"offset\": 0,\r\n \"limit\": 1,\r\n \"sort\": {\r\n \"field\": [\"data.Data.IndividualTypeProperties.SequenceNumber\"],\r\n \"order\": [\"ASC\"]\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C11. Get the Second and Third Wellbore (Pagination)", "event": [ { "listen": "test", "script": { "id": "ce79a2df-ccc5-4bff-a489-0f84a302d565", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.WellID:\\\"srn:master-data/Well:3687:\\\"\",\r\n \"offset\": 1,\r\n \"limit\": 10,\r\n \"sort\": {\r\n \"field\": [\"data.Data.IndividualTypeProperties.SequenceNumber\"],\r\n \"order\": [\"ASC\"]\r\n } \r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C12. Limit Returned Fields", "event": [ { "listen": "test", "script": { "id": "64426317-4895-4f5d-935f-4c42d86d5d2f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.ResourceTypeID: \\\"srn:type:work-product-component/WellLog:\\\"\",\r\n \"returnedFields\": [\"data.ResourceID\", \"data.Data.IndividualTypeProperties.Name\"]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C13. Get the Number of Wellbores for WellID (Limit)", "event": [ { "listen": "test", "script": { "id": "b4e6288d-9d86-4ec0-863f-a7d271a73cac", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.WellID:\\\"srn:master-data/Well:3687:\\\"\",\r\n \"returnedFields\": [\"\"],\r\n \"limit\": 1\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C14. Group Results by Kind (Aggregates)", "event": [ { "listen": "test", "script": { "id": "7b022de9-e8a7-44f0-bcfd-66cf0ba53655", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"limit\": 1,\r\n \"aggregateBy\": \"kind\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Spatial Search", "item": [ { "name": "C15. Get Wells in Bounding Box (Spatial)", "event": [ { "listen": "test", "script": { "id": "37c58a67-154d-486c-973c-044a67ffc80f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.0\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byBoundingBox\": {\r\n\t\t\t\"topLeft\": {\r\n\t\t \t\"longitude\": 3.03738396,\r\n \"latitude\": 53.06290314\r\n \t},\r\n \t\t\"bottomRight\": {\r\n \t\t\"longitude\": 5.1580810546875,\r\n \t\"latitude\": 52.75956761546834\r\n \t\t}\r\n \t}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C16. Get Wells within Distance (Spatial)", "event": [ { "listen": "test", "script": { "id": "c15065b6-d584-4585-9dee-f0a6a8294b59", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.0\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \t \"latitude\": 53.06290314,\r\n \"longitude\": 3.53738396\r\n },\r\n \"distance\": 10000\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C17. Get Wells in Polygon (Spatial)", "event": [ { "listen": "test", "script": { "id": "233e593e-31de-48b7-8c29-775529b3e631", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.0\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 3.53738396,\r\n \"latitude\": 53.06290314\r\n },\r\n {\r\n \"longitude\": 2.9493408203125,\r\n \"latitude\": 52.75956761546834\r\n },\r\n {\r\n \"longitude\": 5.064697265625,\r\n \"latitude\": 52.579688026538726\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Range Queries", "item": [ { "name": "C18. Get Wells with Spud Date between X and Y (Range)", "event": [ { "listen": "test", "script": { "id": "e93603ed-8234-4137-a224-a9d6780dfcad", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.SpudDate:[1999-01-01 TO 2023-02-27}\",\r\n \"sort\": {\r\n \"field\": [\"data.SpudDate\"],\r\n \"order\": [\"DESC\"]\r\n },\r\n \"limit\": 30\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C19. Get WellLogs with Total Depth greater than X (Range)", "event": [ { "listen": "test", "script": { "id": "db22ac57-8754-4b70-9968-6b8077c3409d", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth: >2200\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "C20. Get WellLogs with Total Depth between X and Y (Range)", "event": [ { "listen": "test", "script": { "id": "00e64b3f-d368-44c3-a3b4-5881b10c09b5", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth:[2000 TO 3000]\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Enriched [0.2.1]", "item": [ { "name": "Fulltext Search", "item": [ { "name": "D01. Fulltext Search #1", "event": [ { "listen": "test", "script": { "id": "009cd1ce-5098-4292-b691-4fb2476f911c", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"BIR*\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D02. Fulltext Search #2 (Wildcard)", "event": [ { "listen": "test", "script": { "id": "723e2884-388d-438c-b578-0519c01ca23f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\n \"query\": \"BIR 0?\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D03. Fulltext Search #3 (Fuzzy)", "event": [ { "listen": "test", "script": { "id": "d9c6021a-f317-4dda-9240-bb8c8d9d8926", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"data.WellName:EMM~\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Field-match Search", "item": [ { "name": "D04. Get All Resources by UWI", "event": [ { "listen": "test", "script": { "id": "b4f5f50f-be2c-4fd3-8ca7-ae6ce4c8a223", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"data.UWI:8690\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D05. Get All Resources by UWI (Wildcard)", "event": [ { "listen": "test", "script": { "id": "58adc8ca-b64d-4d2e-9d14-f78293234b15", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"data.UWI:101*\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Combining Filters", "item": [ { "name": "D06. Get All Resources by UWI (OR)", "event": [ { "listen": "test", "script": { "id": "4c0d91a9-9e72-416a-8411-67d82432f098", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"data.UWI:(8690 OR 8438)\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D07. Get Well by UWI (AND)", "event": [ { "listen": "test", "script": { "id": "2b6d0e7a-dc69-42eb-b7cb-2c71f844ee36", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\r\n \"query\": \"(data.UWI:(8690 OR 8438)) AND (data.Data.IndividualTypeProperties.CountryID: \\\"srn:master-data/GeopoliticalEntity:Netherlands:\\\")\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D08. Find WellLog with GR and DT Curves (Array)", "event": [ { "listen": "test", "script": { "id": "dc514470-430a-4335-ad71-6f0c1f2de843", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:welllog-wpc:0.2.1\",\r\n \"query\": \"data.Curves.Mnemonic: GR AND DT\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D09. Find Markers and Trajectories by UWBI (Children)", "event": [ { "listen": "test", "script": { "id": "21169040-e0e2-46c7-b617-0b8e0a25f4b4", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.1\",\r\n \"query\": \"(data.UWBI: 3687) AND (kind: \\\"opendes:osdu:wellboremarker-wpc:0.2.1\\\" \\\"opendes:osdu:wellboretrajectory-wpc:0.2.1\\\")\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Limits & Pagination", "item": [ { "name": "D10. Get the First Wellbore (Pagination)", "event": [ { "listen": "test", "script": { "id": "8825fca0-151e-4bbe-bd9f-2c4a981c8390", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:wellbore-master:0.2.1\",\r\n \"query\": \"data.UWI:3687\",\r\n \"sort\": {\r\n \"field\": [\"data.Data.IndividualTypeProperties.SequenceNumber\"],\r\n \"order\": [\"ASC\"]\r\n },\r\n \"offset\": 0,\r\n \"limit\": 1\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D11. Get the Second and Third Wellbore (Pagination)", "event": [ { "listen": "test", "script": { "id": "77094ab7-3388-4bee-8c56-a2e7fcc3f69e", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "value": "{{data-partition-id}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:wellbore-master:0.2.1\",\r\n \"query\": \"data.UWI:3687\",\r\n \"sort\": {\r\n \"field\": [\"data.Data.IndividualTypeProperties.SequenceNumber\"],\r\n \"order\": [\"ASC\"]\r\n },\r\n \"offset\": 1,\r\n \"limit\": 10\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D12. Limit Returned Fields", "event": [ { "listen": "test", "script": { "id": "0e5582fb-f5e5-4fcd-bec5-f6c592630e8b", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:welllog-wpc:0.2.1\",\r\n \"query\": \"*\",\r\n \"returnedFields\": [\"data.ResourceID\", \"data.Curves\"]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D13. Get the Number of Wellbores for UWI (Limit)", "event": [ { "listen": "test", "script": { "id": "054045b7-04ae-4106-a3d2-289f6f4b0dad", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:wellbore-master:0.2.1\",\r\n \"query\": \"data.UWI:3687\",\r\n \"returnedFields\": [\"\"],\r\n \"limit\": 1\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D14. Group Wells by Spud Date (Aggregates)", "event": [ { "listen": "test", "script": { "id": "7520db45-d27b-4280-95ad-8e5f2757d005", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\n \"limit\": 1,\n \"returnedFields\": [\"\"],\n \"aggregateBy\": \"data.SpudDate\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Spatial Search", "item": [ { "name": "D15. Get Wells in Bounding Box", "event": [ { "listen": "test", "script": { "id": "07cf337a-b22d-4e58-9196-b432442e363f", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byBoundingBox\": {\r\n\t\t \"topLeft\": {\r\n\t\t \t\"longitude\": 4.9493408203125,\r\n \t\"latitude\": 52.859180945520826\r\n \t},\r\n \t\t\"bottomRight\": {\r\n \t\t\"longitude\": 5.1580810546875,\r\n \t\"latitude\": 52.75956761546834\r\n \t\t}\r\n \t}\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D16. Get Wells within Distance", "event": [ { "listen": "test", "script": { "id": "30a6df24-9b31-4ba7-a35d-68209c577ddc", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", "}\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \t\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n \"distance\": 10000\r\n }\r\n }\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D17. Get Wells in Polygon", "event": [ { "listen": "test", "script": { "id": "47ba0011-f289-4783-81a3-b598bcc5df36", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.GeoLocation\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n {\r\n \"longitude\": 4.9493408203125,\r\n \"latitude\": 52.75956761546834\r\n },\r\n {\r\n \"longitude\": 5.064697265625,\r\n \"latitude\": 52.579688026538726\r\n },\r\n {\r\n \"longitude\": 5.372314453125,\r\n \"latitude\": 52.68970242806752\r\n },\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Range Queries", "item": [ { "name": "D18. Get Wells with Spud Date between X and Y", "event": [ { "listen": "test", "script": { "id": "879a3f2c-394e-429c-82b9-1bd0fc7c3e57", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:0.2.1\",\r\n \"query\": \"data.SpudDate:[1999-01-01 TO 1999-02-27}\",\r\n \"sort\": {\r\n \"field\": [\"data.SpudDate\"],\r\n \"order\": [\"DESC\"]\r\n },\r\n \"limit\": 30\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D19. Get WellLogs with Top Depth greater than X", "event": [ { "listen": "test", "script": { "id": "a546feaa-b1e3-4e2d-be1a-1b0cb97ae9b2", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\": \"{{data-partition-id}}:osdu:welllog-wpc:0.2.1\",\n \"query\": \"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth: >2000\",\n \"returnedFields\": [\"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth\", \"data.Data.IndividualTypeProperties.TopMeasuredDepth.UnitOfMeasure\"],\n \"sort\": {\n \"field\": [\"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth\"],\n \"order\": [\"ASC\"]\n },\n \"limit\": 99\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "D20. Get WellLogs with Top Depth in Range", "event": [ { "listen": "test", "script": { "id": "4ef5c85d-a606-408c-8350-b0b4be881ebe", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" } ], "body": { "mode": "raw", "raw": "{\n \"kind\": \"{{data-partition-id}}:osdu:welllog-wpc:0.2.1\",\n \"query\": \"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth: {0 TO 2000]\",\n \"returnedFields\": [\"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth\"],\n \"sort\": {\n \"field\": [\"data.Data.IndividualTypeProperties.TopMeasuredDepth.Depth\"],\n \"order\": [\"ASC\"]\n },\n \"limit\": 99\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true } ], "event": [ { "listen": "prerequest", "script": { "id": "62fdb065-488e-4936-9667-91d62b397008", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "0f095dcb-8275-47e1-a8ff-059c36dc6628", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "Seismic Search", "item": [ { "name": "E01. Get Acquisition Project By Name", "event": [ { "listen": "test", "script": { "id": "882cf642-38f5-4f74-9b67-0e6c513d1342", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismic-acquisition-project:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.ProjectID: ST0202R08\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] }, "description": "No enrichment required." }, "response": [] }, { "name": "E02. Get All Processing Projects for Acquisition Project (Children)", "event": [ { "listen": "test", "script": { "id": "2a005375-a925-45e2-944e-e2f0924bc96c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismic-processing-project:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.SeismicAcquisitionProjects: \\\"srn:master-data/SeismicAcquisitionProject:ST2020R08:\\\"\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] }, "description": "We want to be able to find the processing project given the acquisition project id:\n\n\"srn:master-data/SeismicAcquisitionProject:ST2020R08:\".\n\nDoes not require enrichment and after the initial loading of manifests (master-data) we should be able to run the search." }, "response": [] }, { "name": "E03. Get Acquisition Projects By Operator", "event": [ { "listen": "test", "script": { "id": "82363d37-7a14-48f9-bdab-29bbfc7c37d4", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismic-acquisition-project:0.2.0\",\r\n \"query\": \"(data.Data.IndividualTypeProperties.Operator: \\\"srn:master-data/Organisation:Statoil:\\\") AND (data.Data.IndividualTypeProperties.ProjectTypeID: \\\"srn:reference-data/ProjectType:Acquisition:\\\")\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] }, "description": "No enrichment required. Should be able to find acquisition project by Operator\n\n\"srn:master-data/SeismicAcquisitionProject:ST2020R08:\"\n\nShould return 1 acquisition project based on Volve manifests." }, "response": [] }, { "name": "E04. Get Acquisition Projects Between X and Y", "event": [ { "listen": "test", "script": { "id": "643c1567-d28d-44b8-9532-e472ac32bf48", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismic-acquisition-project:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.ProjectEndDate:[2000-01-01 TO 2008-02-01]\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] }, "description": "Does not require enrichment (search schema should have `datetime` )" }, "response": [] }, { "name": "E05. Get Acquisition Projects With Cable Length Greater Than X", "event": [ { "listen": "test", "script": { "id": "9da830da-150b-46e3-9eb9-7040f5ce4f72", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismic-acquisition-project:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.CableLength: >5000\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "E06. Get Trace by Geographic Region", "event": [ { "listen": "test", "script": { "id": "1b36e2eb-3210-4b3b-92e6-8dd919d17949", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismictracedata-wpc:0.2.0\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.Data.ExtensionProperties.locationWGS84\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n },\r\n {\r\n \"longitude\": 1.949673713,\r\n \"latitude\": 58.4041567\r\n },\r\n {\r\n \"longitude\": 1.978324105,\r\n \"latitude\": 58.45614207\r\n },\r\n {\r\n \"longitude\": 1.84227351,\r\n \"latitude\": 58.48147214\r\n },\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "E07. Get Trace by Domain Type (Depth/Time)", "event": [ { "listen": "test", "script": { "id": "3e90c222-a998-4cf1-b7e0-3bb7a5067467", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismictracedata-wpc:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.SeismicDomainTypeID:\\\"srn:reference-data/SeismicDomainType:Depth:\\\"\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "E08. Get Horizon by Geographic Region", "event": [ { "listen": "test", "script": { "id": "330b0802-1524-4502-8d0c-970cdd1a0583", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismichorizon-wpc:0.2.0\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.Data.ExtensionProperties.locationWGS84\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n },\r\n {\r\n \"longitude\": 1.949673713,\r\n \"latitude\": 58.4041567\r\n },\r\n {\r\n \"longitude\": 1.978324105,\r\n \"latitude\": 58.45614207\r\n },\r\n {\r\n \"longitude\": 1.84227351,\r\n \"latitude\": 58.48147214\r\n },\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "E09. Get Horizon by Name", "event": [ { "listen": "test", "script": { "id": "31084e3c-f001-44b4-b0f6-c5718103e0c2", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismichorizon-wpc:0.2.0\",\r\n \"query\": \"data.Data.IndividualTypeProperties.Name: SHETLAND_GP\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] }, { "name": "E10. Get Horizon by GeologicalUnitAgePeriod & GeologicalUnitName (wildcards)", "event": [ { "listen": "test", "script": { "id": "f66216dd-c30d-40c5-b3c9-37d0c97c8717", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Expected result count\", () => {", " pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:seismichorizon-wpc:0.2.*\",\r\n \"query\": \"(data.Data.IndividualTypeProperties.GeologicalUnitAgePeriod: Turonian) AND (data.Data.IndividualTypeProperties.GeologicalUnitName: Shetland*)\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "7ee70bf6-06fb-4c35-a512-f4b1eada3018", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "36055f48-0339-4938-a08a-3705d6e0139f", "type": "text/javascript", "exec": [ "const Ajv = require('ajv');", "const ajv = new Ajv({logger: console})", "", "pm.test(\"Expected correct response structure\", () => {", " const schema = {", " \"required\": [", " \"results\",", " \"aggregations\",", " \"totalCount\"", " ],", " \"properties\": {", " \"results\": {", " \"$id\": \"#/properties/results\",", " \"type\": \"array\"", " },", " \"aggregations\": {", " \"$id\": \"#/properties/aggregations\",", " \"type\": [\"array\", \"null\"]", " },", " \"totalCount\": {", " \"$id\": \"#/properties/totalCount\",", " \"type\": \"integer\"", " }", " },", " \"$id\": \"http://example.org/root.json#\",", " \"type\": \"object\",", " \"definitions\": {},", " \"$schema\": \"http://json-schema.org/draft-07/schema#\"", " };", " pm.expect(ajv.validate(schema, pm.response.json()), JSON.stringify((ajv.errors || []).map(e => `${e.dataPath} ${e.message}`))).to.be.true;", "})" ] } } ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true }, { "name": "F01. Search - Count Records By Kind (Aggregates)", "event": [ { "listen": "test", "script": { "id": "ae4e3a11-21bd-4d62-a180-826e9529e669", "exec": [ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "\r", "//get the record count\r", "try {\r", " let resBody = pm.response.json();\r", "\r", " let recordCount = resBody.totalCount;\r", " tests[\"Record count: \" + recordCount] = recordCount >= 1;\r", " }\r", "catch (e) {\r", " console.log(e.message);\r", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "data-partition-id", "type": "text", "value": "{{data-partition-id}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:*:0.2.0\",\r\n \"query\": \"*\",\r\n \"aggregateBy\": \"kind\",\r\n \"limit\": 1,\r\n \"returnedFields\": [\"\"]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{SEARCH_HOST}}/query", "protocol": "https", "host": [ "{{SEARCH_HOST}}" ], "path": [ "query" ] } }, "response": [] } ], "protocolProfileBehavior": {} } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access_token}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "id": "53085b69-9a75-47cb-bb3f-aeb494ccbd88", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "7d687b71-c920-4a10-88b5-b348e92aa015", "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "id": "9633d3c4-1305-4480-ab53-43b154e1f9c0", "key": "data-partition-id", "value": "opendes", "type": "string" } ], "protocolProfileBehavior": {} }