REST API Examples

Well

Read Well

GET /services/plugin-liverig/assets/well/view/attributes/{wellId}

Create Well

POST /services/plugin-liverig/assets/well

{
   "name": "wellName",
   "type": "offshore_floating",
   "perspective": {
      "id":"1"
   }
}

Update Well

POST /services/plugin-liverig/assets/well/view/attributes/{wellId}

{
   "description":{
      "name":"1-RJS-752",
      "type":"offshore_floating",
      "water_depth":"15",
      "final_depth":"1550",
      "production_unit":"text_area_livre",
      "goal":{
         "blocks":[
            {
               "key":"7h93s",
               "type":"unstyled",
               "text":"text_area_livre",
               "depth":"0.0",
               "inlineStyleRanges":[

               ],
               "data":{

               },
               "entityRanges":[

               ]
            }
         ],
         "entityMap":{

         }
      },
      "units":{
         "water_depth":"m",
         "final_depth":"m"
      }
   },
   "pressures":{
      "pore":[
         {
            "quota":123,
            "md":123
         }
      ],
      "fracture":[
         {
            "quota":456,
            "md":456
         }
      ],
      "units":{
         "quota":"m",
         "md":"m",
         "pressure":"lb/gal"
      }
   },
   "sections":{
      "sections":[
         {
            "bit_diameter":"36.0",
            "final_md":358.04,
            "id":"98871d56-0795-4a19-8e04-74d9e98387a6",
            "md_casing_shoe":358.04,
            "top_of_cement":298.0
         },
         {
            "bit_diameter":"17.5",
            "final_md":1310.0,
            "id":"e87b9ee6-c85e-4284-bfd8-e161bd9ecf12",
            "md_casing_shoe":1298.38,
            "top_of_cement":298.0
         },
         {
            "bit_diameter":"36.0",
            "final_md":358.04,
            "id":"9272c954-a86a-4f77-bcc2-6de1fbe39767",
            "md_casing_shoe":358.04,
            "top_of_cement":298.0
         },
         {
            "bit_diameter":"17.5",
            "final_md":1310.0,
            "id":"ac4c5a42-f576-43ca-870d-f927180aa55c",
            "md_casing_shoe":1298.38,
            "top_of_cement":298.0
         }
      ],
      "units":{
         "bit_diameter":"in",
         "casing_diameter":"in",
         "final_md":"m",
         "fluid_weight":"lb/gal",
         "md_casing_shoe":"m",
         "top_of_cement":"m"
      }
   },
   "temperatures":{
      "profile":[
         {
            "quota":1234,
            "md":45689,
            "temperature":78
         }
      ],
      "water_depth":[
         {
            "quota":753,
            "md":951,
            "temperature":458
         }
      ],
      "units":{
         "quota":"m",
         "md":"m"
      }
   },
   "trajectory":{
      "trajectory":[
         {
            "md":147,
            "inclination":258,
            "azimuth":369,
            "tvd":80.76890393770103,
            "horizontalDisplacement":99.74128980911976
         },
         {
            "md":987,
            "inclination":654,
            "azimuth":321,
            "tvd":172.5660925578345,
            "horizontalDisplacement":895.0306693605418
         }
      ],
      "units":{
         "md":"m",
         "inclination":"º",
         "azimuth":"º",
         "tvd":"m",
         "horizontalDisplacement":"m"
      }
   },
   "location":{
      "country":"BR",
      "region":"text_area_livre",
      "field":"text_area_livre",
      "latitude":22.222222,
      "longitude":55.665656565
   }
}

Rig

Read Rig

GET /services/plugin-liverig/assets/rig/view/attributes/{rigId}

Create Rig

POST /services/plugin-liverig/assets/rig

Update Rig

POST /services/plugin-liverig/assets/rig/view/attributes/{rigId}

Intervention

Read Intervention

GET /services/plugin-liverig/assets/well/view/new_intervention/{wellId}

Create or Update Intervention

POST /services/plugin-liverig/assets/well/view/new_intervention/{wellId}

Sections

Read Sections

GET /services/plugin-liverig/assets/intervention/{interventionId}/part/drilling_sections

Create or Update Sections

POST /services/plugin-liverig/assets/intervention/{interventionId}/part/drilling_sections

Last updated

Was this helpful?