Unused query parameter accesibility
Bug Report
The bug description
At route https://api.golemio.cz/v2/sortedwastestations/. Query parameter accessibility
is not used for filtering out sorted waste stations. And all the data fetched from db has assigned/overwritten accessibility "volně".
Environment
External API use
Steps to reproduce
curl --include \
--header "Content-Type: application/json; charset=utf-8" \
--header "x-access-token: YOUR_ACCESS_TOKEN" \
'https://api.golemio.cz/v2/sortedwastestations/?accessibility=2&limit=1'
Use valid access token. The limit
param is arbitrary.
Expected behavior
The returned sorted waste stations GeoJSON should have accessibility with description "obyvatelům domu" and id = 2.
Additional context, logs, screenshots
Possible fixes
I don't know if this issue goes deeper or not. This is what i found out from a quick look at the code.
If you want i can submit PR but it would be "blindly" coded and would need someone to test if it works.
Many thanks.
Edited by Jakub Zíka