Minor issue with REST API GET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viklele
    Junior Member
    • Mar 2019
    • 7

    Minor issue with REST API GET

    Hi,

    I have been trying out the REST API with an view of using it in a mobile app.

    Have run into a minor issue related to the GET call.

    In the documentation on page https://www.espocrm.com/documentatio...rud-operations, it indicates that the caller can specify the list of fields to fetch through the select parameter.

    Code:
    'select' => 'id,name,assignedUserId,status'
    It appears that it does not correctly honor the field list if there are spaces in the string. For example:

    Code:
    'select' => 'id, name,assignedUserId, status'
    will not return the results as desired. I know its a minor inconvenience, but to improve the readability many people prefer to leave a space after the comma. It appears to use the field name with preceding space - so in the above example, the server will not return the name and status field.

    Thanks,

    Warm Regards,
    Vikram



  • yuri
    Member
    • Mar 2014
    • 8451

    #2
    Hi Vikram,

    I added to documentation that white spaces are not allowed. It's not common to use white spaces in URL query string parameters.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...