I am currently trying to follow this Brewbase API tutorial to better understand APIs and this block code in general.
I’ve made it past the first part and have my basic app working, and I’m now trying to get the app to filter Brewery locations by city if the list is longer than 50 results which is detailed in this video.
I’ve spent the last 2 days trying to fix this issue and just cannot figure out what’s gone wrong. Here is a screen recording of my issue, as well as screenshots of all my code blocks. Thank you so so much for anyone who has the time and is able to help!
It wouldn’t let me upload more than one image, I apologize!
It’s hard to help you troubleshoot this without being able to see the API’s JSON response. Can you either post the full JSON response as text (be sure to format it using the </> button in the forums toolbar above the post) or provide the full url to the API Get request on the Results Page screen?
Yes, here is that url, I figure that might be a bit easier. Thank you so much!!
On your Results page, it looks like you’re sorting by brewery name instead of city. Have you tried using the “city” property instead?
I can definitely use that as a work around instead of the way the tutorial has it, it would save me a lot of frustration, haha. I’m just so confused why that city variable doesn’t seem to be resetting when the search page opens.