Skip to content

format=concise is sent as a request body, so it never takes effect - #2

Merged
jason-fox merged 1 commit into
FIWARE:NGSI-LDfrom
kzangeli:fix/concise-param-in-body
Sep 21, 2026
Merged

jason-fox merged 1 commit into
FIWARE:NGSI-LDfrom
kzangeli:fix/concise-param-in-body

Conversation

@kzangeli

Copy link
Copy Markdown

Step 6️⃣, "Read a Data Entity (concise)":

curl -L -X GET \
  'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:002' \
-H 'Link: ...' \
-H 'Accept: application/json' \
-d 'format=concise'

Without -G, curl puts -d data in the request body. -X GET overrides the method, so what goes out is a GET with an empty query string and format=concise in a body no broker reads. The response is therefore normalized, while the block below it shows concise.

Visible in a captured run of this page: the same entity, the same nominal parameter — the -L form returned normalized, the -G form further down the page returned concise.

The rest of the page already uses curl -G -X GET for parameterised GETs; this one request was missed. Same class as FIWARE/tutorials.Context-Providers#23.

🤖 Generated with Claude Code

The "Read a Data Entity (concise)" request uses

    curl -L -X GET ... -d 'format=concise'

Without `-G`, curl puts `-d` data in the request BODY. `-X GET` overrides the
method, so what goes out is a GET with an empty query string and `format=concise`
in a body that the broker does not read. The response is therefore normalized,
while the block below it shows concise.

Visible in a captured run of this page against a broker: the same entity, the
same nominal parameter, `-L` returned normalized and `-G` returned concise.

The rest of the page already uses `curl -G -X GET` for parameterised GETs; this
one request was missed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jason-fox
jason-fox merged commit 30317c9 into FIWARE:NGSI-LD Sep 21, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants