... | ... | @@ -74,6 +74,15 @@ Source of the Device NGSI-LD data model: [https://fiware-datamodels.readthedocs. |
|
|
|
|
|
An example of a Device entity using the corresponding NGSI-LD data model can be found here: [NGSI-LD Device entity](https://gitlab.distantaccess.com/naiades/naiades-platform-poc/-/blob/migrate_to_ld_queries/NGSI-LD_data_models/Device.json)
|
|
|
|
|
|
Example to post a new Device entity:
|
|
|
```
|
|
|
curl -X POST -H "Content-Type: application/json" -H "Fiware-Service: carouge" http://fiware-orion-ld:1026/v2/entities --data-binary @Device.json -vv
|
|
|
```
|
|
|
Example to get an Alert entity:
|
|
|
```
|
|
|
curl -H "Fiware-Service: carouge" http://fiware-orion-ld:1026/v2/entities/urn:ngsi-ld:Device:Device-0972?type=Device -vv
|
|
|
```
|
|
|
|
|
|
### FlowerBed
|
|
|
Source of the FlowerBed NGSI-LD data model: [https://fiware-datamodels.readthedocs.io/en/latest/ParksAndGardens/FlowerBed/doc/spec/index.html](https://fiware-datamodels.readthedocs.io/en/latest/ParksAndGardens/FlowerBed/doc/spec/index.html)
|
|
|
|
... | ... | @@ -103,7 +112,7 @@ The results of these initial tests are shown in the following table: |
|
|
| Data model | POST | GET |
|
|
|
| ------ | ------ | ------ |
|
|
|
| Alert | OK | OK |
|
|
|
| Device | ? | ? |
|
|
|
| Device | OK | OK |
|
|
|
| FlowerBed | ? | ? |
|
|
|
| WaterQualityObserved | ? | ? |
|
|
|
| WeatherForecast | ? | ? |
|
... | ... | |