Een soortgelijk probleem heb ik met de request …
QUERY POST FAILS ON …: {“https://bag.basisregistraties.overheid.nl/api/v1/panden”,
“{“geometrie”:{“intersects”:{“coordinates”:[[[6.158166441,52.096281914],[6.158163455,52.096281421],[6.1581795,52.096236113],[6.158216104,52.096241294],[6.158560397,52.096290023],[6.158556791,52.096300922],[6.158542911,52.09633889],[6.158411599,52.096321405],[6.158412086,52.096319999],[6.158324802,52.096306584],[6.158325421,52.096305277],[6.158303677,52.096301923],[6.158284689,52.096299333],[6.158200156,52.09628634],[6.158166441,52.096281914]]],“type”:“Polygon”}}}”,
[
{“Accept”, “application/hal+json”},
{“X-API-Key”, "… "}
], [params: [page: 1]]}
die een HTML response 404 levert in trant van …
404 Pagina niet gevonden
Maar de volgende curl …
curl -d “{“geometrie”:{“intersects”:{“coordinates”:[[[6.158166441,52.096281914],[6.158163455,52.096281421],[6.1581795,52.096236113],[6.158216104,52.09624129],[6.158560397,52.096290023],[6.158556791,52.096300922],[6.158542911,52.09633889],[6.158411599,52.096321405],[6.158412086,52.096319999],[6.158324802,52.096306584],[6.158325421,52.096305277],[6.158303677,52.096301923],[6.158284689,52.096299333],[6.158200156,52.09628634],[6.158166441,52.096281914]]],“type”:“Polygon”}}}” -H “Content-Type: application/json” -X POST -H “X-API-KEY: API-Key-weggelaten” -H “Accept: application/hal+json” “https://bag.basisregistraties.overheid.nl/api/v1/panden?page=1”
levert nu wel degelijk een resultaat in JSON af! Naast het HTML resultaat lijkt ook de 404 not found niet terecht!