Announcement

Collapse
No announcement yet.

Minor issue with REST API GET

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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




  • #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.

    Comment

    Working...
    X