The "copywellboregeometry" web service copies a well bore geometry into the specified data source.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/wbgeometries/copy with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
The following parameters are available:
copyoptions: a JSON object representing copy options. The following parameters are available:
geometryLink: is the URL of the source well bore geometry
wellName: is the name of a well bore (or a well if well bores are not supported) a geometry will be copied into
overwrite indicates whether to override an existing well bore geometry. If overwrite is false and a well bore geometry already exists then an error will be thrown. This is an optional parameter. The default is false.
geometryName: is the destination geometry name
An example import is shown below (pass multipart/form-data as Content-Type):
{
"copyoptions":{
"geometryLink":"/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/wbgeometries/e8b7afb1-b167-4603-9885-16fa29ac5e7c",
"wellName":"EnergisticsWell2016-A",
"overwrite":true,
"geometryName":"Andalusit-1 Casing data_Test2"
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:CopyWellBoreGeometriesJsonActor:CopyWellBoreGeometriesResponse for CopyWellBoreGeometriesRequest:CopyWellBoreGeometriesRequest{klass=AbstractWellBoreGeometryCopier, sourceType=mongo, sourceName=84e10999-60f4-4aff-83cd-7e880d24d866, pathInfo=/ds/mongo/v1/sources/84e10999-60f4-4aff-83cd-7e880d24d866/wbgeometries/copy, parameters=[WellBoreGeometryCopyParameters{wellBoreGeometryUrl=http://localhost:8080/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/wbgeometries/e8b7afb1-b167-4603-9885-16fa29ac5e7c, destinationWellName=EnergisticsWell2016-A, destinationWellBoreGeometryName=Andalusit-1 Casing data_Test2, override=true, authorizationHeaders={proxyIpAddress=0:0:0:0:0:0:0:1}}]}"
},
"data": {
"wbgeometries": [
{
"id": "1f45c326-e7c4-4742-9f30-69b6f73eee1d",
"links": [
{
"rel": "Wellbore Geometry",
"name": "Wellbore Geometry",
"relEntity": "v1/schema/int/wbgeometry",
"href": "/ivaap/api/ds/mongo/v1/sources/84e10999-60f4-4aff-83cd-7e880d24d866/wbgeometries/1f45c326-e7c4-4742-9f30-69b6f73eee1d",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
]
}
}
The id entry is the unique id of a copied well bore geometry.
The links section provides a HATEOAS link to the "Well Bore Geometry Web Service (v3)" service.
The content of this web service is pluggable so that information specific to your data format can be included. To add your own content, extend the com.interactive.ivaapapi.json.AbstractJsonBuilder class.