Pensano-dev / aura-mobile-app

4 stars 0 forks source link

feat: FE - Fetch Request for Cafe Data #66

Open siqbal181 opened 6 months ago

siqbal181 commented 6 months ago

65 Needs to be completed before this ticket can begin

Description FacilityForm is used to make the search for cafes, but the submit function is currently just a placeholder. This ticket is therefore needed in order to perform the fetch request to the BE to retrieve the relevant matching cafe data.

AC

In the axios request params please include

API Route to retrieve selected Cafes /api/v1.0/cafes/selected

Example URL with request params shown here localhost:8080/api/v1.0/cafes/selected?requiredFacilities=outdoor%20area,wi-fi&facilities=toilets&userLocation=51.5074,-0.1278

NB: Feel free to ask Pablo or Sidra