Skip to content

Support NGSI-LD QueryEntities endpoint for lazy attributes#1722

Merged
fgalan merged 3 commits intotelefonicaid:masterfrom
jason-fox:feature/lazy-attributes
Jul 18, 2025
Merged

Support NGSI-LD QueryEntities endpoint for lazy attributes#1722
fgalan merged 3 commits intotelefonicaid:masterfrom
jason-fox:feature/lazy-attributes

Conversation

@jason-fox
Copy link
Copy Markdown
Contributor

In NGSI-LD the operation type retrieveOps supports two endpoints for attribute retrieval:

  • RetrieveEntity: /ngsi-ld/v1/entities/urn:nsgi-ld:XXXXX/?attrs=yyy
  • QueryEntities: /ngsi-ld/v1/entities/?id=urn:nsgi-ld:XXXXX&attrs=yyy

The IoT Agent in NGSI-LD creates a registration in retrieveOps mode, hence it needs to support both endpoints to be NGSI-LD compliant. This change will broaden the number of NGSI-LD context brokers which can retrieve "lazy attributes"

  • Added support for QueryEntities.
  • Removed QueryEntities from unsupported endpoints
  • Updated tests.

@fgalan
Copy link
Copy Markdown
Member

fgalan commented Jul 18, 2025

Please add an entry in CHANGES_NEXT_RELEASE file describing the change done in this PR, in "changelog style" (see examples in https://github.com/telefonicaid/iotagent-node-lib/releases)

@jason-fox jason-fox force-pushed the feature/lazy-attributes branch from d37f990 to b5cde22 Compare July 18, 2025 08:02
@jason-fox
Copy link
Copy Markdown
Contributor Author

Please add an entry in CHANGES_NEXT_RELEASE file describing the change done in this PR, in "changelog style" (see examples in https://github.com/telefonicaid/iotagent-node-lib/releases)

Done f26204e

Copy link
Copy Markdown
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fgalan fgalan merged commit df23233 into telefonicaid:master Jul 18, 2025
7 checks passed
@jason-fox jason-fox deleted the feature/lazy-attributes branch July 18, 2025 09:32
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