Question on REST
 

Question on REST

5 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    447 posts
    Registered:
    29 Jun 2018
    27 Aug
    Link to this post
    Running against the sports2000 DB. Should all three of these work?

    Broken: http://localhost:8820/web/Entities/Customers?Country%5BEQ%5D=DE

    Works: http://localhost:8820/web/Entities/Customers?Country%5BEQ%5DDE

    Baseline: http://localhost:8820/web/Entities/Customers?Country=DE

    The middle and bottom URLs return the DE customers. The top one returns 200 with either an empty array or customers whose Country is blank — never the DE rows — because the filter built is Country = "".

    Thanks in advance.
  2. Mike Fechner
    Mike Fechner avatar
    372 posts
    Registered:
    14 Sep 2016
    28 Aug in reply to Roger Blanchard
    Link to this post
    Hi Roger,

    the issue is with the combonation of the [EQ] and = operators.Most likely, the first is filtering for equals "=DE".

    What we can do in this case however is to improve the behaviro and return HTTP 400 instead. Claude is already looking into that.

    Mike
  3. Roger Blanchard
    Roger Blanchard avatar
    447 posts
    Registered:
    29 Jun 2018
    28 Aug in reply to Mike Fechner
    Link to this post
    Thanks Mike...Claude actually found this during our REST endpoint testing. 

    Please let me know when this is released.

    Thank you...see you in 6 weeks.
  4. Mike Fechner
    Mike Fechner avatar
    372 posts
    Registered:
    14 Sep 2016
    28 Aug in reply to Roger Blanchard
    Link to this post
    This is going to be in our next release, Tuesday or Wednesday next week.
  5. Roger Blanchard
    Roger Blanchard avatar
    447 posts
    Registered:
    29 Jun 2018
    28 Aug in reply to Mike Fechner
    Link to this post
    Thanks Mike...have a great weekend.
5 posts, 0 answered