Commit 2290a139 authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Merge branch 'v3-demo-postman' into 'master'

Postman with data chunking V3 APIs for pre-shipping

See merge request !213
parents 9213b8f3 873cbed0
Pipeline #59417 passed with stages
in 5 minutes and 48 seconds
{
"info": {
"_postman_id": "fe08fcdc-b4c0-440b-a8c2-f6b1f94e2d5c",
"_postman_id": "866d3e3c-b600-4487-83e7-6f3b1b548f79",
"name": "DEMO WDMS",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "About & Version",
"item": [
{
"name": "About",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{authorization}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/about",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"about"
]
}
},
"response": []
},
{
"name": "Version",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{authorization}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/version",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"version"
]
}
},
"response": []
}
]
},
{
"name": "v3",
"item": [
......@@ -65,7 +130,7 @@
},
"response": [
{
"name": "Put Well",
"name": "Create OSDU Well response",
"originalRequest": {
"method": "POST",
"header": [
......@@ -165,7 +230,7 @@
"name": "Wellbore",
"item": [
{
"name": "create OSDU Wellbore",
"name": "Create OSDU Wellbore",
"request": {
"auth": {
"type": "bearer",
......@@ -212,7 +277,7 @@
"response": []
},
{
"name": "get OSDU wellbore",
"name": "get OSDU Wellbore",
"request": {
"auth": {
"type": "bearer",
......@@ -253,10 +318,10 @@
]
},
{
"name": "wellLog",
"name": "WellLog",
"item": [
{
"name": "post OSDU wellLog",
"name": "Create OSDU WellLog",
"request": {
"auth": {
"type": "bearer",
......@@ -310,7 +375,7 @@
"response": []
},
{
"name": "post OSDU wellLog data",
"name": "post OSDU WellLog data",
"request": {
"auth": {
"type": "bearer",
......@@ -371,7 +436,7 @@
"response": []
},
{
"name": "get OSDU wellLog",
"name": "get OSDU WellLog",
"request": {
"auth": {
"type": "bearer",
......@@ -410,7 +475,7 @@
"response": []
},
{
"name": "get OSDU wellLog data",
"name": "get OSDU WellLog data",
"request": {
"auth": {
"type": "bearer",
......@@ -478,6 +543,303 @@
}
},
"response": []
},
{
"name": "Create WellLog session",
"event": [
{
"listen": "test",
"script": {
"exec": [
"const resobj = pm.response.json();",
"pm.collectionVariables.set(\"welllogSessionId\", resobj.id);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"fromVersion\": 0,\r\n \"timeToLive\": 60,\r\n \"mode\": \"update\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/welllogs/{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}/sessions",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"welllogs",
"{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}",
"sessions"
],
"query": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "get WellLog session",
"request": {
"method": "GET",
"header": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"type": "text"
}
],
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/welllogs/{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}/sessions/{{welllogSessionId}}",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"welllogs",
"{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}",
"sessions",
"{{welllogSessionId}}"
],
"query": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "post WellLog session data",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{authorization}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "data-partition-id",
"type": "text",
"value": "{{datapartitionid}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"columns\": [\r\n \"Ref\",\r\n \"col_1\",\r\n \"col_2\"\r\n ],\r\n \"index\": [\r\n 0,\r\n 5,\r\n 6\r\n ],\r\n \"data\": [\r\n [\r\n 0,\r\n 1010.1,\r\n 2020.1\r\n ],\r\n [\r\n 10,\r\n 9999,\r\n 8888\r\n ],\r\n [\r\n 100,\r\n 7777.77,\r\n 66.6666\r\n ]\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/welllogs/{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}/sessions/{{welllogSessionId}}/data",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"welllogs",
"{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}",
"sessions",
"{{welllogSessionId}}",
"data"
],
"query": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"disabled": true
},
{
"key": "orient",
"value": "split",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "commit WellLog session",
"request": {
"method": "PATCH",
"header": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"state\": \"commit\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/welllogs/{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}/sessions/{{welllogSessionId}}",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"welllogs",
"{{datapartitionid}}:work-product-component--WellLog:{{welllogId}}",
"sessions",
"{{welllogSessionId}}"
],
"query": [
{
"key": "data-partition-id",
"value": "{{datapartitionid}}",
"disabled": true
}
]
}
},
"response": []
}
]
},
{
"name": "Trajectory",
"item": [
{
"name": "Create OSDU Trajectory",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{authorization}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "data-partition-id",
"type": "text",
"value": "{{datapartitionid}}"
}
],
"body": {
"mode": "raw",
"raw": "[\r\n {\r\n\r\n \"acl\": {\r\n \"viewers\": [\r\n \"data.default.viewers@{{datapartitionid}}.{{domain}}\"\r\n ],\r\n \"owners\": [\r\n \"data.default.owners@{{datapartitionid}}.{{domain}}\"\r\n ]\r\n },\r\n\r\n \"legal\": {\r\n \"legaltags\": [\r\n \"{{legaltags}}\"\r\n ],\r\n \"otherRelevantDataCountries\": [\r\n \"FR\", \"US\"\r\n ]\r\n },\r\n\r\n \"id\": \"{{datapartitionid}}:work-product-component--WellboreTrajectory:{{wellboretrajectoryId}}\",\r\n \"kind\": \"osdu:wks:work-product-component--WellboreTrajectory:1.1.0\",\r\n\r\n \"data\": {\r\n \"Name\": \"{{wellboretrajectoryName}}\",\r\n \"WellboreID\": \"{{datapartitionid}}:master-data--Wellbore::{{wellboreId}}:\",\r\n \"TopDepthMeasuredDepth\": 0,\r\n \"BaseDepthMeasuredDepth\": 0,\r\n \"VerticalMeasurement\": {\r\n \"EffectiveDateTime\": \"2021-08-17T14:13:08.174Z\",\r\n \"VerticalMeasurement\": 0\r\n }\r\n }\r\n }\r\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/wellboretrajectories",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"wellboretrajectories"
]
}
},
"response": []
},
{
"name": "get OSDU Trajectory",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{authorization}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "data-partition-id",
"type": "text",
"value": "{{datapartitionid}}"
}
],
"url": {
"raw": "{{protocol}}://{{baseUrl}}/api/os-wellbore-ddms/ddms/v3/wellboretrajectories/{{datapartitionid}}:work-product-component--WellboreTrajectory:{{wellboretrajectoryId}}",
"protocol": "{{protocol}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"os-wellbore-ddms",
"ddms",
"v3",
"wellboretrajectories",
"{{datapartitionid}}:work-product-component--WellboreTrajectory:{{wellboretrajectoryId}}"
]
}
},
"response": []
}
]
}
......@@ -553,7 +915,7 @@
},
{
"key": "wellboreId",
"value": "dummy1234"
"value": "00001234"
},
{
"key": "welllogName",
......@@ -561,7 +923,19 @@
},
{
"key": "welllogId",
"value": "00001234"
},
{
"key": "welllogSessionId",
"value": "xxxx1234"
},
{
"key": "wellboretrajectoryName",
"value": "dummy1234"
},
{
"key": "wellboretrajectoryId",
"value": "00001234"
}
]
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment