Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8298

[fiware-stackoverflow] Is it possible to pass custom GET parameters when using the NGSI query method?

    Details

      Description

      Created question in FIWARE Q/A platform on 21-02-2017 at 23:02
      Please, ANSWER this question AT http://stackoverflow.com/questions/42379500/is-it-possible-to-pass-custom-get-parameters-when-using-the-ngsi-query-method

      Question:
      Is it possible to pass custom GET parameters when using the NGSI query method?

      Description:
      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]>

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 22/Feb/17 6:04 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 22/Feb/17 9:04 PM
        Answered Answered Closed Closed
        5h 59m 1 Backlog Manager 23/Feb/17 3:04 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler Wirecloud [ 10857 ]
        Description
        Created question in FIWARE Q/A platform on 21-02-2017 at 23:02
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/42379500/is-it-possible-to-pass-custom-get-parameters-when-using-the-ngsi-query-method


        +Question:+
        Is it possible to pass custom GET parameters when using the NGSI query method?

        +Description:+
        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.

        &lt;Request 'http://MY_IP:MY_PORT/v1/queryContext?limit=20&amp;details=on&amp;offset=0&#39; [POST]&gt;

        Created question in FIWARE Q/A platform on 21-02-2017 at 23:02
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/42379500/is-it-possible-to-pass-custom-get-parameters-when-using-the-ngsi-query-method


        +Question:+
        Is it possible to pass custom GET parameters when using the NGSI query method?

        +Description:+
        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.

        &lt;Request 'http://MY_IP:MY_PORT/v1/queryContext?limit=20&amp;details=on&amp;offset=0&#39; [POST]&gt;

        HD-Chapter Apps [ 10836 ]
        fla Fernando Lopez made changes -
        Assignee Álvaro Arranz [ aarranz ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-23 03:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-23 03:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-22 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-22 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-22 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-22 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-02-22 15:05|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-02-22 15:05|CREATED monitor | # answers= 1, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: