The "update well curve values" web service updates one of several values of an individual curve:
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/logs/{wellloguniqueid}/curvevalues with the PUT method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: unique id of a datasource
wellloguniqueid: a unique id of a well log
The following payload is expected (pass application/json as Content-Type)
{
"curveid": "32",
"pairs": [
[
"1770.8879433",
"My annotation 2 and Edit"
]
]
}
curveid: index of the curve to update within the designated well log
pairs: an array of index/value pairs
The first value of a pair is the index (time or depth) value
The second value of a pair is the value. Can be a string, a double, depending on the type of curve
Here is an example response. This response has been formatted to improve readability
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:UpdateWellLogCurveJsonActor:UpdateWellLogCurveResponse for UpdateWellLogCurveRequest:UpdateWellLogCurveRequest{curveUpdaterClass=AbstractWellCurveUpdater, sourceType=mongo, sourceName=b867d5a9-f588-40eb-bba0-d72c45e554d5, wellLogUniqueid=201b9bec-d1e7-4e83-99a2-d55a05f75d98:44bbcfe5-43fb-46e5-83e8-6a79d7910fd5, curveUniqueId=wellLogUniqueId=201b9bec-d1e7-4e83-99a2-d55a05f75d98:44bbcfe5-43fb-46e5-83e8-6a79d7910fd5 (java.lang.String)\nwellLogCurveId=32 (java.lang.Integer), curveValues={1770.8879433=My annotation 2 and Edit}, pathInfo=/ds/mongo/v1/sources/b867d5a9-f588-40eb-bba0-d72c45e554d5/logs/201b9bec-d1e7-4e83-99a2-d55a05f75d98%3A44bbcfe5-43fb-46e5-83e8-6a79d7910fd5/curvevalues}"
},
"data": {
"id": "201b9bec-d1e7-4e83-99a2-d55a05f75d98:44bbcfe5-43fb-46e5-83e8-6a79d7910fd5",
"content": [
{
"indexDataValue": "1770.8879433",
"curveDataValue": "My annotation 2 and Edit"
}
],
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/log",
"href": "/ivaap/api/ds/mongo/v1/sources/b867d5a9-f588-40eb-bba0-d72c45e554d5/logs/201b9bec-d1e7-4e83-99a2-d55a05f75d98%3A44bbcfe5-43fb-46e5-83e8-6a79d7910fd5",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Log Curve",
"name": "Log Curve",
"relEntity": "v1/schema/int/logcurve",
"href": "/ivaap/api/ds/mongo/v1/sources/b867d5a9-f588-40eb-bba0-d72c45e554d5/logs/201b9bec-d1e7-4e83-99a2-d55a05f75d98%3A44bbcfe5-43fb-46e5-83e8-6a79d7910fd5/curves",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is the unique id of an updated well log dataset.
The links section provides HATEOAS links to the services of this well dataset.
If the specified wellloguniqueid doesn't match a valid well log, no JSON response will be provided. The HTTP response will only show a "InvalidUniqueId" (error 404) in its headers.
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.