Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025849Openbravo ERPZ. Otherspublic2014-02-26 15:582014-02-26 15:58
smola 
dmiguelez 
normalminoralways
newopen 
20Community Appliance
 
 
JSON REST Webservice
No
0025849: endRow parameter on requests and responses is not consistent
It seems the URL parameter _endRow and the response parameter endRow do not mean the same. The former is 1-based index and the later is 0-based.

(Also note that totalRows value doesn't really look like the total results matching the current criteria...?)
curl --user user:pass "http://localhost/openbravo/org.openbravo.service.json.jsonrest/Country?_startRow=1&_endRow=2" [^] | json_pp



{
   "response" : {
      "startRow" : 1,
      "status" : 0,
      "totalRows" : 4,
      "endRow" : 1,
      "data" : [
         {
                // ... truncated ...
         }
      ]
   }
}
No tags attached.
Issue History
2014-02-26 15:58smolaNew Issue
2014-02-26 15:58smolaAssigned To => dmiguelez
2014-02-26 15:58smolaModules => JSON REST Webservice
2014-02-26 15:58smolaTriggers an Emergency Pack => No

There are no notes attached to this issue.