{"id":23868110,"url":"https://github.com/siddiqui145/user_api","last_synced_at":"2026-04-17T08:05:24.058Z","repository":{"id":268206339,"uuid":"903642634","full_name":"Siddiqui145/user_api","owner":"Siddiqui145","description":"This project is a REST API designed to fetch and manage detailed information about users. Built to understand and explore REST architecture, this project allows querying data with both simple and complex filters.","archived":false,"fork":false,"pushed_at":"2024-12-15T18:56:58.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-13T08:13:09.658Z","etag":null,"topics":["dart","flutter","http-requests","rest-api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siddiqui145.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-15T06:33:42.000Z","updated_at":"2024-12-18T18:05:17.000Z","dependencies_parsed_at":"2024-12-15T07:37:22.911Z","dependency_job_id":null,"html_url":"https://github.com/Siddiqui145/user_api","commit_stats":null,"previous_names":["siddiqui145/user_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Siddiqui145/user_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddiqui145%2Fuser_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddiqui145%2Fuser_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddiqui145%2Fuser_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddiqui145%2Fuser_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siddiqui145","download_url":"https://codeload.github.com/Siddiqui145/user_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siddiqui145%2Fuser_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","http-requests","rest-api"],"created_at":"2025-01-03T11:17:38.005Z","updated_at":"2026-04-17T08:05:24.014Z","avatar_url":"https://github.com/Siddiqui145.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API User Data Fetcher\n\nThis project is a trial implementation of a REST API integration in a Flutter app. The goal was to successfully fetch and display user data from an external API, demonstrating proficiency in handling HTTP requests and managing JSON data in Flutter.\n\n## Features\n\n- Fetches user details such as name, email, location, date of birth, and more from a REST API.\n- Parses JSON data into Dart objects for easy manipulation.\n- Successfully displays all the retrieved data within the app.\n\n## Screenshots\n\n![REST_API_1](https://github.com/user-attachments/assets/451755bc-5f27-429d-9006-68122c7401ef)\n\n![REST_API_2](https://github.com/user-attachments/assets/654852c2-534b-4526-9989-2f1a119d6ec0)\n\n\n\n## Tech Stack\n\n- **Flutter**: Frontend framework for building the mobile app.\n- **Dart**: Programming language used for app development.\n- **REST API**: Source of user data.\n\n## Key Implementation Highlights\n\n1. **HTTP Request**:\n   - Used the `http` package to make a GET request to fetch data.\n   - API Endpoint: [Random User API](https://randomuser.me/).\n\n2. **Data Parsing**:\n   - Converted the JSON response into Dart objects using custom data models.\n   - Managed complex nested JSON structures for fields like name, address, and picture.\n\n3. **Error Handling**:\n   - Included exception handling to manage API failures or invalid data formats.\n\n4. **Date Parsing**:\n   - Converted string dates into `DateTime` objects using `DateTime.parse()`.\n\n## Folder Structure\n\n```\nlib/\n├── models/         # Contains data model classes\n├── screens/        # UI screens displaying fetched data\n├── services/       # API-related logic (e.g., HTTP requests)\n└── main.dart       # App entry point\n```\n\n## How to Run\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/Siddiqui145/user_api.git\n   cd user_api\n   ```\n\n2. **Install Dependencies**:\n   ```bash\n   flutter pub get\n   ```\n\n3. **Run the App**:\n   ```bash\n   flutter run\n   ```\n\n   Ensure you have an emulator or a connected device ready.\n\n## Lessons Learned\n\n- Gained hands-on experience with REST API integration in Flutter.\n- Learned how to parse complex JSON data structures.\n- Improved understanding of handling date formats and converting them to Dart `DateTime`.\n\n## Future Improvements\n\n- Enhance UI to make the displayed data more visually appealing.\n- Add functionality to filter and search the fetched user data.\n- Implement caching for offline access.\n\n## Resources\n\n- [Flutter Documentation](https://flutter.dev/docs)\n- [Random User API Documentation](https://randomuser.me/)\n- [Dart DateTime Class](https://api.dart.dev/stable/2.19.0/dart-core/DateTime-class.html)\n\n## License\n\nThis project is for educational purposes and does not include a specific license. Feel free to fork and modify for your own learning.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddiqui145%2Fuser_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddiqui145%2Fuser_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddiqui145%2Fuser_api/lists"}