The "createwelltopset" web service creates a new well top set within the specified data source.
A typical URL is http://myserver.mycompany.com:8080/INTGeoServer/api/ds/{datasourcetype}/v1/sources/{datasource}/topsets with the POST method.
where
datasourcetype: type of a datasource, i.e. mongo, s3, etc.
datasource: a unique id of a datasource
The following payload is expected (pass application/json as Content-Type):
{
"name":"benRo-2",
"unit":"m"
}
name is the name of a well top set
unit is the unit symbol associated with this well top set
Here is an example response. This response has been formatted to improve readability.
{
"from": {
"actor": "akka://DefaultActorSystemControllerActorSystem:CreateTopSetJsonActor:CreateTopSetResponse for CreateTopSetRequest:CreateTopSetRequest{klassUpdater=AbstractWellTopSetUpdaterklassFinder=AbstractWellTopSetFinder, sourceName=c9db3458-6698-49d9-ae8f-f407ce26ae2e, name=benRo-2, unit=m, pathInfo=/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets}"
},
"data": {
"id": "3014098d-dd43-4e54-b05e-4064129e46d9",
"content": {
"name": "benRo-2",
"indexUnit": "m"
},
"links": [
{
"rel": "self",
"relEntity": "v1/schema/int/topset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/3014098d-dd43-4e54-b05e-4064129e46d9",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": false
},
{
"rel": "Top Set",
"name": "Top Set",
"relEntity": "v1/schema/int/topset",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/3014098d-dd43-4e54-b05e-4064129e46d9",
"children": false,
"hasProjectEntityChildren": false,
"isProjectEntity": true
},
{
"rel": "Top",
"name": "Top",
"relEntity": "v1/schema/int/top",
"href": "/ivaap/api/ds/mongo/v1/sources/c9db3458-6698-49d9-ae8f-f407ce26ae2e/topsets/3014098d-dd43-4e54-b05e-4064129e46d9/tops",
"children": true,
"hasProjectEntityChildren": false,
"isProjectEntity": false
}
]
}
}
The id entry is a unique id of a well top set.
In content section
name is the name of a top set
indexUnit specifies unit symbol associated with this well top set, i.e. s, ft, m, ms or undefined
The links section provides HATEOAS links to the services supported by a top set.