{"id":26577994,"url":"https://github.com/lucho00cuba/sample-api","last_synced_at":"2026-04-17T15:34:07.227Z","repository":{"id":283912692,"uuid":"953258172","full_name":"Lucho00Cuba/sample-api","owner":"Lucho00Cuba","description":"A FastAPI-based REST API with JWT authentication and automatic route loading.","archived":false,"fork":false,"pushed_at":"2025-03-23T00:57:48.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T01:28:55.975Z","etag":null,"topics":["api-rest","fastapi","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Lucho00Cuba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-22T23:35:08.000Z","updated_at":"2025-03-23T00:59:38.000Z","dependencies_parsed_at":"2025-03-23T01:39:08.664Z","dependency_job_id":null,"html_url":"https://github.com/Lucho00Cuba/sample-api","commit_stats":null,"previous_names":["lucho00cuba/sample-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucho00Cuba%2Fsample-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucho00Cuba%2Fsample-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucho00Cuba%2Fsample-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucho00Cuba%2Fsample-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lucho00Cuba","download_url":"https://codeload.github.com/Lucho00Cuba/sample-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052957,"owners_count":20553232,"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","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":["api-rest","fastapi","python3"],"created_at":"2025-03-23T04:18:22.614Z","updated_at":"2026-04-17T15:34:07.174Z","avatar_url":"https://github.com/Lucho00Cuba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample API FastAPI\n\n![Tests Status](https://img.shields.io/github/actions/workflow/status/Lucho00Cuba/sample-api/tests.yaml?label=Tests%20Status\u0026logo=github)\n![License](https://img.shields.io/badge/License-MIT-blue.svg)\n\nThis is a sample API built with FastAPI and Authentication and Authorization using JWT.\n\n## Requirements\n\n- DevContainers (VSCode)\n- Python 3.12\n- Docker\n\n## Setup\n\n1. Clone the repository\n\n    ```bash\n    git clone https://github.com/Lucho00Cuba/sample-api.git\n    cd sample-api\n    ```\n2.a. **Using DevContainers (Recommended)**\n\n   - VSCode should prompt you to open the project in a DevContainer. The necessary environment will be set up automatically.\n\n2.b. **Without DevContainers**\n\n   - Create a virtual environment:\n\n     ```\n     python3 -m venv venv\n     ```\n\n   - Activate the virtual environment:\n   \n     **On Linux/MacOS:**\n        ```\n        source venv/bin/activate\n        ```\n     **On Windows:**\n        ```\n        .\\venv\\Scripts\\activate\n        ```\n\n   - Install dependencies:\n        ```\n        pip install -r requirements.txt\n        ```\n\n   - Run the API:\n\n      ```bash\n      API_IS_DEV=true src/entrypoint.sh\n      ```\n\n## Features\n\n- 🔐 Authorization and Authentication using JWT\n- 🔄 Automatic loading routes from the `src/routes` folder\n   - 📝 Manually set an endpoint if needed\n- 📊 Custom response formatting for consistent API responses\n- 📑 Swagger and Redoc auto-generated API documentation\n- 📦 Docker support\n\n## TODO\n\n- [ ] ✅ Improve unit and integration test coverage\n- [ ] 🔗 Integrate with a third-party user system such as Rancher-Manager (Local)\n- [ ] 🚀 Implement rate-limiting to prevent abuse\n- [ ] 🔄 Implement a refresh token mechanism for better security\n- [ ] 📂 Improve database handling, possibly integrating SQLAlchemy or another ORM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucho00cuba%2Fsample-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucho00cuba%2Fsample-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucho00cuba%2Fsample-api/lists"}