lvbag / BAG-API

Welkom op het platform waar de technische documentatie over de BAG API Individuele Bevragingen gepubliceerd wordt.
55 stars 19 forks source link

The expand on the GET /nummeraanduidingen seems not working #14

Closed roland-d closed 4 years ago

roland-d commented 4 years ago

Hello,

When I call the GET endpoint {{baseUrl}}/nummeraanduidingen?postcode=3192VR&huisnummer=146&exacteMatch=true&expand=true there are two things I notice:

  1. It returns all the houses on this street, I would think it should only return the one that matches the zipcode and housenumber
  2. The expand true doesn't give any embedded results. So I tried also expand=ligtInWoonplaats but this doesn't give any embedded value either.

Could you explain what the expected behavior is?

lvbag commented 4 years ago

Hi Roland, I am afraid to say it, but you are testing a not in test implemented endpoint again. The only reason you are getting a response is because this endpoint was used to implement paging. So if you would like to test that, here you go. The only endpoints that are testable are the objects with the object id (Actueel en Peildatum). Expand won't be part of the first release except for the expand in Woonplaatsen.

roland-d commented 4 years ago

Hello,

No worries, I realize I am testing against a work in progress :) Just happy to share my experiences with you as an end-user. I can confirm that pagination is working 😃

Thank you for the fast answer.