Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexsegura opened this issue Jun 27, 2024 · 0 comments

Comments

@alexsegura
Copy link
Member

alexsegura commented Jun 27, 2024

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants