-
Notifications
You must be signed in to change notification settings - Fork 4
Milestone 2 Bahri Alabey Individual Report
- #132: Described the functionality I'm going to implement.
- #165: Described what to write on this report and what to explain.
The GeoDB cities API is used. The API offers a straightforward RESTful interface, allowing users to make HTTP requests and receive JSON responses containing details about the cities, population, currency and etc. But I'll not use all of the response data, only country, population and city name will be used.
Following url has the details about the API, it may request an account. https://rapidapi.com/wirefreethought/api/geodb-cities , can check the link for further explanations about the API and docs.
I have created 2 functions for my internal API. One is for getting all the favourite cities and the other is to make a city favourite.
-
createCity
- POST: This endpoint allows users to add a city to their favorites list by sending a request containing the necessary information. Upon successful addition, the endpoint responds with success code 200 and a string "City created successfully!". If an error occurred, it responds with error code and a string "Failed to create city". -
getAllCities
- GET: This endpoint allows users to get their favourite cities list. Upon successful request, it returns an array of the cities that added as favourite by user.
In order to get cities with filter, I've sent a POST request to Geo DB API. Here is one example request response.
Also some parameters must be sent in the header and the body of the request. First, the key must be sent in the header since API is requiring account.
Since filters are not mandatory, all of the body parameters are optional. I've used 4 of them (minPopulation, maxPopulation, namePrefix, limit). But there are lots of parameters that can be used. I've sent those in the body. Here is my request to get cities with filter.
I had some problems about the time. Also understanding what we need to do was harder than actually doing it.
🗄️ Project
Milestones
👤 Individual Contribution Reports
Milestone 1
- Bahadır Gezer - Milestone 1
- Bahri Alabey - Milestone 1
- Begüm Yivli - Milestone 1
- Egemen Kaplan - Milestone 1
- Enes Yıldız - Milestone 1
- Hasan Baki Küçükçakıroğlu - Milestone 1
- İbrahim Furkan Özçelik - Milestone 1
- Meriç Keskin - Milestone 1
- Miraç Öztürk - Milestone 1
- Sude Konyalıoğlu - Milestone 1
- Ömer Faruk Çelik - Milestone 1
Milestone 2
- Bahadır Gezer - Milestone 2
- Bahri Alabey - Milestone 2
- Begüm Yivli - Milestone 2
- Egemen Kaplan - Milestone 2
- Enes Yıldız - Milestone 2
- Hasan Baki Küçükçakıroğlu - Milestone 2
- İbrahim Furkan Özçelik - Milestone 2
- Meriç Keskin - Milestone 2
- Miraç Öztürk - Milestone 2
- Sude Konyalıoğlu - Milestone 2
- Ömer Faruk Çelik - Milestone 2
Final Milestone
- Bahadır Gezer - Final Milestone
- Bahri Alabey - Final Milestone
- Begüm Yivli - Final Milestone
- Egemen Kaplan - Final Milestone
- Enes Yıldız - Final Milestone
- Hasan Baki Küçükçakıroğlu - Final Milestone
- İbrahim Furkan Özçelik - Final Milestone
- Meriç Keskin - Final Milestone
- Sude Konyalıoğlu - Final Milestone
- Ömer Faruk Çelik - Final Milestone
🖇️ Lab Reports
📑 Templates
👥 Team Members
CmpE 352
Old Project Files
📅 Meetings
🔬 Researches
👤 Individual Contribution Reports
- Bahri Alabey - Milestone 1
- Bahri Alabey - Milestone 2
- Ömer Faruk Çelik - Milestone 1
- Ömer Faruk Çelik - Milestone 2
- Bahadır Gezer - Milestone 1
- Bahadır Gezer - Milestone 2
- Egemen Kaplan - Milestone 1
- Egemen Kaplan - Milsetone 2
- Meriç Keskin - Milestone 1
- Meriç Keskin - Milestone 2
- Orkun Kılıç - M1
- Orkun Kılıç - M2
- Sude Konyalıoğlu Milestone 1
- Sude Konyalıoğlu Milestone 2
- Hasan Baki Küçükçakıroğlu Milestone 1
- Hasan Baki Küçükçakıroğlu Milestone 2
- Ibrahim Furkan Özçelik Milestone 1
- Ibrahim Furkan Özçelik Milestone 2
- Miraç Öztürk
- Enes Yıldız Milestone 1
- Enes Yıldız Milestone 2
- Begüm Yivli M1
- Begüm Yivli M2