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

Implement city search API endpoint #1

Open
6 tasks
KJJisBetter opened this issue Aug 31, 2024 · 0 comments
Open
6 tasks

Implement city search API endpoint #1

KJJisBetter opened this issue Aug 31, 2024 · 0 comments

Comments

@KJJisBetter
Copy link
Owner

KJJisBetter commented Aug 31, 2024

Create a Flask route that accepts city names as input and returns relevant city data. This endpoint should:

  • Handle GET requests with a city name parameter
  • Implement input validation and error handling
  • Connect to and query a city database or external API
  • Return structured JSON data including city name, country, coordinates, and basic info
  • Implement proper error responses for invalid inputs or not found cities
  • Testing: Include unit tests for this endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant