Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
Description
Created question in FIWARE Q/A platform on 21-02-2017 at 23:02
Please, ANSWER this question AT https://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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 21-02-2017 at 23:02 {color: red}Please, ANSWER this question AT{color} https://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]> |
Created question in FIWARE Q/A platform on 21-02-2017 at 23:02
{color: red}Please, ANSWER this question AT{color} https://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]> |
Assignee | Backlog Manager [ backlogmanager ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 56m | 1 | Backlog Manager | 22/May/17 6:07 PM | |||||
|
3h | 1 | Backlog Manager | 22/May/17 9:07 PM |
2017-05-22 15:12|CREATED monitor | # answers= 1, accepted answer= True