peeringdb / peeringdb

Server code for https://www.peeringdb.com/
BSD 2-Clause "Simplified" License
340 stars 111 forks source link

API limit=x does not work when response type set in URL #1604

Open barryo opened 2 weeks ago

barryo commented 2 weeks ago

Describe the bug

To Reproduce

❯ curl 'https://www.peeringdb.com/api/ix?limit=20' | jq -r '.data | length'

20

❯ curl 'https://www.peeringdb.com/api/ix.json?limit=20' | jq -r '.data | length'

1256
arnoldnipper commented 2 weeks ago

Clear bug