Skip to content

Commit

Permalink
Update ngsi_arcgis_featuretable_sink.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvillalbamota authored Dec 11, 2023
1 parent deb80da commit dc8c25a
Showing 1 changed file with 39 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,49 @@ For example, if the Feature table for "van" is `https://arcgis.com/{hash}/arcgis
}
```

Using this functionality a different "fiware-servicepath" can be assigned to every entity type.
Using this functionality a different "fiware-servicepath" can be assigned to every entity type.

Moveover, to modify the unique field value of `type` attribute it can be used the [ngsi patching functionality](https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#ngsi-payload-patching):
Note that the previous example is incomplete because does not change the type`s value, so to avoid using the name mappings to modify the unique field value of `type` attribute, it is required the use of [ngsi patching functionality](https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md#ngsi-payload-patching).

An example of the whole subscription:

```
"httpCustom":{
"url": "http://iot-cygnus:<source_arcgis_port>/notify",
"ngsi": {
"type": "car"
},
"headers": {
"fiware-service": "vehicles",
"fiware-servicepath": "/van"
{
"description": "Subs arcgis",
"status": "active",
"subject": {
"entities": [
{
"idPattern": ".*",
"type": "van"
}
],
"condition": {
"attrs": [
"speed",
"oilLevel"
]
}
},
"notification": {
"attrs": [
"speed",
"oilLevel"
],
"onlyChangedAttrs": false,
"attrsFormat": "normalized",
"httpCustom": {
"url": "http://iot-cygnus:<source_arcgis_port>/notify",
"ngsi": {
"type": "car"
},
"headers": {
"fiware-service": "vehicles",
"fiware-servicepath": "/van"
}
}
}
}
}
```

###### result
Expand Down

0 comments on commit dc8c25a

Please sign in to comment.