Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Link to the header of the request to a Orion-LD Catalogue #93

Closed
kosgobakis opened this issue Jul 19, 2021 · 1 comment
Closed

Comments

@kosgobakis
Copy link
Contributor

How i can insert the Link (url to the ngsi-context.jsonld file) as a header to the request for Orion-LD Catalogue ?
When i create a new catalogues -> ORION-> NGSI-LD -> Add/Update file, there is no option to add the Link as variable. I can only insert fiwareService and fiwareServicePath.
Without the Link (jsonld file) i cannot access the value of the IOT sensor.

With Link to the header

curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/'
-H 'fiware-service: openiot'
-H 'fiware-servicepath: /'
-H 'Link: http://context-provider:3000/data-models/ngsi-context.jsonld'
-d 'id=urn:ngsi-ld:Device:temperature001'
-d 'attrs=temperature'| jq .

[
{
"@context": "http://context-provider:3000/data-models/ngsi-context.jsonld",
"id": "urn:ngsi-ld:Device:temperature001",
"type": "TemperatureSensor",
"temperature": {
"value": 24,
"type": "Property",
"unitCode": "CEL",
"observedAt": "2021-07-19T11:31:26.331Z"
}
}
]

Without Link to the header

curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/'
-H 'fiware-service: openiot'
-H 'fiware-servicepath: /'
-d 'id=urn:ngsi-ld:Device:temperature001'
-d 'attrs=temperature'| jq .->

Empty: []

@robcalla
Copy link
Collaborator

Sorry for the inconvenience, we are working on adding this header.

robcalla added a commit that referenced this issue Aug 24, 2021
* Modified CONTRIBUTING.md, added CODE_OF_CONDUCT.md and harmony cla

* keycloak support

* orion tests

* Create ci.yml

* replace ip

* Update ci.yml

* Update ci.yml

* Update ci.yml

* executable

* Update ci.yml

* updated

* Added docker file for BE only

* fixed logout

* updated

* urbanite logo

* fix

* checkstyle

* Update ci.yml

* db fix

* up

* checkstyle

* javadocs

* copyrights

* checkstyle

* checkstyle

* checkstyle

* final

* checkstyle last

* FederationApiMockup

* VCard to Vcard

* first test

* context

* Updated CONTRIBUTING.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants