coopcycle / coopcycle-app

CoopCycle native app
MIT License
151 stars 33 forks source link

Retrieve list of cooperatives from an API instead of reading official website #1819

Open alexsegura opened 1 week ago

alexsegura commented 1 week ago

The list of cooperatives (i.e cities) showing when the app first loads is retrieved from the official website.

This will soon be deprecated. Instead this list should be retrieve from a shared API (to be defined).

To avoid too much coupling between the API & our infra, the API URL could look like:

https://api.coopcycle.org/app/cities

The list could then be filtered by country, for example:

https://api.coopcycle.org/app/cities?country=fr