The "copywelllog" web service copies a well log into the specified data source.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/logs/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:
logLink: is the URL of the source well log
wellName: is the name of a well bore (or a well if well bores are not supported) a well log will be copied into
overwrite indicates whether to override an existing well log. If overwrite is false and a well log set already exists then an error will be thrown. This is an optional parameter. The default is false.
logName: is the destination well log name
An example import is shown below (pass multipart/form-data as Content-Type):
{
"copyoptions":{
"logLink":"/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/logs/1d8af245-8da9-4ece-86cd-e115e9c88a3e%3A10%205%2F8%20in%20Section%20-%20Time%20Log%201",
"wellName":"DemoWell01",
"overwrite":true,
"logName":"10 5/8 in Section - Time Log 1"
}
}
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:CopyWellLogsJsonActor:CopyWellLogsResponse for CopyWellLogsRequest:CopyWellLogsRequest{klass=AbstractWellLogCopier, sourceType=mongo, sourceName=84e10999-60f4-4aff-83cd-7e880d24d866, pathInfo=/ds/mongo/v1/sources/84e10999-60f4-4aff-83cd-7e880d24d866/logs/copy, parameters=[WellLogCopyParameters{wellLogURL=http://localhost:8080/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/logs/1d8af245-8da9-4ece-86cd-e115e9c88a3e%3A10%205%2F8%20in%20Section%20-%20Time%20Log%201, destinationWellName=DemoWell01, destinationLogName=10 5/8 in Section - Time Log 1, destinationShortLogName=10 5/8 in Section - Time Log 1, authorizationHeaders={proxyIpAddress=0:0:0:0:0:0:0:1}, override=true}]}"
},
"data": {
"logs": [
{
"id": "90374e51-23f9-4086-b184-7fa5dc073ef1",
"links": [
{
"rel": "Log",
"name": "Log",
"relEntity": "v1/schema/int/log",
"href": "/ivaap/api/ds/mongo/v1/sources/84e10999-60f4-4aff-83cd-7e880d24d866/logs/90374e51-23f9-4086-b184-7fa5dc073ef1",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
]
}
}
The id entry is the unique id of a copied well log.
The links section provides a HATEOAS link to the "Well Log Data 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.