{"id":26047885,"url":"https://github.com/muhammadadnan1998/build_simple_apis_using_fastapi","last_synced_at":"2025-08-19T11:06:23.541Z","repository":{"id":281058512,"uuid":"944044492","full_name":"MuhammadAdnan1998/Build_Simple_APIs_Using_FastAPI","owner":"MuhammadAdnan1998","description":"A FastAPI-based project that provides two endpoints: one for generating random side hustle ideas and another for fetching money-related quotes. Includes API key authentication for secure access.","archived":false,"fork":false,"pushed_at":"2025-03-06T18:31:27.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T04:02:29.528Z","etag":null,"topics":["fastapi","python","random-quotes-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MuhammadAdnan1998.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":"2025-03-06T17:33:48.000Z","updated_at":"2025-03-06T18:34:44.000Z","dependencies_parsed_at":"2025-03-06T19:40:47.623Z","dependency_job_id":null,"html_url":"https://github.com/MuhammadAdnan1998/Build_Simple_APIs_Using_FastAPI","commit_stats":null,"previous_names":["muhammadadnan1998/build_simple_apis_using_fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MuhammadAdnan1998/Build_Simple_APIs_Using_FastAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhammadAdnan1998%2FBuild_Simple_APIs_Using_FastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhammadAdnan1998%2FBuild_Simple_APIs_Using_FastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhammadAdnan1998%2FBuild_Simple_APIs_Using_FastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhammadAdnan1998%2FBuild_Simple_APIs_Using_FastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuhammadAdnan1998","download_url":"https://codeload.github.com/MuhammadAdnan1998/Build_Simple_APIs_Using_FastAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhammadAdnan1998%2FBuild_Simple_APIs_Using_FastAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271143334,"owners_count":24706343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"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":["fastapi","python","random-quotes-generator"],"created_at":"2025-03-07T23:14:46.652Z","updated_at":"2025-08-19T11:06:23.517Z","avatar_url":"https://github.com/MuhammadAdnan1998.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Side Hustles \u0026 Money Quotes API\n\n## Overview\nThis FastAPI-based project provides two simple API endpoints:\n- `/side_hustles` – Returns a random side hustle idea.\n- `/money_quotes` – Returns a random money-related quote.\n\nBoth endpoints require an API key for authentication.\n\n## Features\n- Fast and lightweight API built with **FastAPI**.\n- Secure API key authentication.\n- Randomized responses for dynamic content delivery.\n\n## Installation \u0026 Setup\n### Prerequisites\nEnsure you have **Python 3.7+** installed.\n\n### Steps\n1. **Clone the repository**:\n   ```sh\n   git clone https://github.com/your-username/your-repo.git\n   cd your-repo\n   ```\n\n2. **Create a virtual environment**:\n   ```sh\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   ```\n\n3. **Install dependencies**:\n   ```sh\n   pip install fastapi uvicorn\n   ```\n\n4. **Run the API server**:\n   ```sh\n   uvicorn main:app --reload\n   ```\n\n## API Endpoints\n### 1. Get a Random Side Hustle Idea\n- **Endpoint**: `GET /side_hustles`\n- **Query Parameter**: `api_key` (required)\n- **Example Request**:\n  ```sh\n  curl \"http://127.0.0.1:8000/side_hustles?api_key=123456789\"\n  ```\n- **Example Response**:\n  ```json\n  {\n    \"side_hustle\": \"Freelancing - Start offering your skills online!\"\n  }\n  ```\n\n### 2. Get a Random Money Quote\n- **Endpoint**: `GET /money_quotes`\n- **Query Parameter**: `api_key` (required)\n- **Example Request**:\n  ```sh\n  curl \"http://127.0.0.1:8000/money_quotes?api_key=123456789\"\n  ```\n- **Example Response**:\n  ```json\n  {\n    \"money_quote\": \"Money is a terrible master but an excellent servant. – P.T. Barnum\"\n  }\n  ```\n\n## Authentication\n- API key is required for both endpoints.\n- Example API key used: `123456789` (Change this for production use).\n\n## Contribution\nFeel free to contribute by submitting pull requests or reporting issues.\n\n## License\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadadnan1998%2Fbuild_simple_apis_using_fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadadnan1998%2Fbuild_simple_apis_using_fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadadnan1998%2Fbuild_simple_apis_using_fastapi/lists"}