[Spce-user] Inconsistency in customers API

Javier Matos Odut javiermatos at vozplus.com
Wed Jan 10 12:58:37 EST 2018


Hello,

I am working with the API and I found an inconsistency in results (SIPWISE
v5.5.2).

Entry point: /api/customers/

Case 1: retrieve page 1 with 1 row:

{
    "_embedded": {
    ...,
    "ngcp:customers": [...] <- this is a list of objects
    },
    "_links": {
    ...,
    "ngcp:customers": {...} <- this is an object
    }
}

Case 2: retrieve page 1 with 2 or more rows:

{
    "_embedded": {
    ...,
    "ngcp:customers": [...] <- this is a list of objects
    },
    "_links": {
    ...,
    "ngcp:customers": [...] <- this is a list of objects
    }
}

So "ngcp:customers" must always be a list in "_links", even when you are
asking for one row.

Regards,
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180110/e500dc88/attachment.html>


More information about the Spce-user mailing list