Question about V3 response inconsistency
-
Is there a reason why the
/map/clusters
endpoint returns as payload response an array of webcam objects while the/webcams
endpoint returns an object that contains as keywebcams
which in return hold the array of webcam objects. It would be great if the API would use a consistent response body shape. -
Hi @fkrauthan, this is because the
/webcams
endpoint supports pagination, so we need to include an extratotal
field. However, the/map/cluster
endpoint doesn't. -
@caldrjir that makes sense. Personally still would have loved to have a consistent response body as that helps keep my integration code clean :)
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps