<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear Javier,<br>
    <br>
    Could you please send output of the:<br>
    grep api_embedded_forcearray /etc/ngcp-config/config.yml<br>
    <br>
    ?<br>
    <br>
    Best regards,<br>
    Irina Peshinskaya<br>
    <br>
    <div class="moz-cite-prefix">On 10.01.2018 19:58, Javier Matos Odut
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+J6Zk9-PijnRH5LmPb1gf_FSSsrZzDTDr_ay2-v4M41M4E29A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am working with the API and I found an inconsistency in
          results (SIPWISE v5.5.2).</div>
        <div><br>
        </div>
        <div>Entry point: /api/customers/</div>
        <div><br>
        </div>
        <div>Case 1: retrieve page 1 with 1 row:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">{</font></div>
        <div><font face="monospace, monospace">    "_embedded": {</font></div>
        <div><font face="monospace, monospace">    ...,</font></div>
        <div><font face="monospace, monospace">    "ngcp:customers":
            [...] <- this is a list of objects</font></div>
        <div><font face="monospace, monospace">    },</font></div>
        <div><font face="monospace, monospace">    "_links": {</font></div>
        <div><font face="monospace, monospace">    ...,</font></div>
        <div><font face="monospace, monospace">    "ngcp:customers":
            {...} <- this is an object</font></div>
        <div><font face="monospace, monospace">    }</font></div>
        <div><font face="monospace, monospace">}</font></div>
        <div><br>
        </div>
        <div>Case 2: retrieve page 1 with 2 or more rows:</div>
        <div><br>
        </div>
        <div>
          <div><font face="monospace, monospace">{</font></div>
          <div><font face="monospace, monospace">    "_embedded": {</font></div>
          <div><font face="monospace, monospace">    ...,</font></div>
          <div><font face="monospace, monospace">    "ngcp:customers":
              [...] <- this is a list of objects</font></div>
          <div><font face="monospace, monospace">    },</font></div>
          <div><font face="monospace, monospace">    "_links": {</font></div>
          <div><font face="monospace, monospace">    ...,</font></div>
          <div><font face="monospace, monospace">    "ngcp:customers":
              [...] <- this is a list of objects</font></div>
          <div><font face="monospace, monospace">    }</font></div>
          <div><font face="monospace, monospace">}</font></div>
        </div>
        <div><br>
        </div>
        <div>So "ngcp:customers" must always be a list in "_links", even
          when you are asking for one row.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Javier</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>