1

I'm trying to send personalised parameters through ngsi_connection.query function (e.g., NEW_PARAMETER). Is it possible? if so, how?

this.ngsi_connection.query(entityIdList, attributes, {
                        details: true,
                        limit: options.pageSize,
                        offset: (page - 1) * options.pageSize,
                        NEW_PARAMETER: "MY VALUE",
                        onSuccess: onNGSIQuerySuccess.bind(null, onSuccess, page),
                        onFailure: onError
                    });

Note: of course I have already test it, and the only parameters that seems to be included in the request are: limit, details, offset, as showed below.

<Request 'http://MY_IP:MY_PORT/v1/queryContext?limit=20&details=on&offset=0' [POST]>

1 Answer 1

1

Currently, the only supported parameters are the ones listed by you: limit, details and offset. AFAIK, these are the only GET parameters used by the NGSI v1's query operation. Please, open a new ticket in the ngsijs repo explaining if there are more GET parameters for the query operation or if you want to add those GET parameters for other purposes :).

1
  • ok, thanks for replying. It won't be need for adding a new ticket; though. The reason of my additional parameters was different than those aligned on the NGSI API
    – netzahdzc
    Feb 22, 2017 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.