A SignalKResourceType or user defined resource type.
The resource identifier. (e.g. ac3a3b2d-07e8-4f25-92bc-98e7c92f7f1a
)
Optional
providerId: stringThe id of the Resource Provider plugin to use to complete the request.
Retrieve the resource with the supplied SignalK resource_type and resource_id.
Requires a registered Resource Provider. See ResourceProviderRegistry.registerResourceProvider.
A SignalKResourceType or user defined resource type.
The resource identifier. (e.g. ac3a3b2d-07e8-4f25-92bc-98e7c92f7f1a
)
Optional
providerId: stringThe id of the Resource Provider plugin to use to complete the request. Most commonly used for creating a new resource entry when more than one provider is registered for the specified resource type.
Retrieve collection of resource entries of the supplied resource_type matching the provided criteria.
Requires a registered Resource Provider. See ResourceProviderRegistry.registerResourceProvider.
A SignalKResourceType or user defined resource type.
Object containing key | value
pairs representing the criteria by which to filter the returned entries.
The registered Resource Provider must support the supplied parameters for results to be filtered.
Optional
providerId: stringThe id of the Resource Provider plugin to use to complete the request.
Create / update value of the resource with the supplied SignalK resource_type and resource_id.
Requires a registered Resource Provider. See ResourceProviderRegistry.registerResourceProvider.
A SignalKResourceType or user defined resource type.
The resource identifier. (e.g. ac3a3b2d-07e8-4f25-92bc-98e7c92f7f1a
)
A complete and valid resource record.
Optional
providerId: stringThe id of the Resource Provider plugin to use to complete the request. Most commonly used for creating a new resource entry when more than one provider is registered for the specified resource type.
app.resourcesApi.setResource(
'waypoints',
'ac3a3b2d-07e8-4f25-92bc-98e7c92f7f1a',
{
"name": "My Waypoint",
"feature": {
"type":"Feature",
"geometry": {
"type": "Point",
"coordinates": [138.5, -38.6]
},
"properties":{}
}
}
).then ( () => {
// success
...
}).catch (error) {
// handle error
console.log(error.message);
...
}
Delete the resource with the supplied SignalK resource_type and resource_id.
Requires a registered Resource Provider. See ResourceProviderRegistry.registerResourceProvider.