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

Minor changes in curl request sample #19

Closed
dpatil-fw opened this issue Feb 2, 2021 · 0 comments
Closed

Minor changes in curl request sample #19

dpatil-fw opened this issue Feb 2, 2021 · 0 comments

Comments

@dpatil-fw
Copy link

At this link:
https://github.com/FIWARE/tutorials.Linked-Data#onezero-request

The 'mq' needs to be replaced with 'q' in the sample request below:

curl -G -X GET
'http://localhost:1026/ngsi-ld/v1/entities'
-H 'Link: https://fiware.github.io/data-models/context.jsonld; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
-H 'Accept: application/json'
-d 'type=Building'
-d 'mq=address.verified==true'
-d 'options=keyValues'

Also, at this link: https://github.com/FIWARE/tutorials.Linked-Data#five-request

curl -G -X GET
-H 'Accept: application/ld+json'
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001'

The first time on executing the curl request, I got a 'Bad Request' error. However, on including the context headers, it worked fine.

curl -G -X GET
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001'
-H 'Link: https://fiware.github.io/data-models/context.jsonld; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'

I didn't have to include the headers in the GET request thereafter.

fisuda added a commit to fisuda/tutorials.Linked-Data that referenced this issue Feb 20, 2021
jason-fox added a commit that referenced this issue Feb 22, 2021
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

1 participant