{"id":27950686,"url":"https://github.com/rodrigo-kelven/api-flask-jwt","last_synced_at":"2026-01-21T09:31:44.248Z","repository":{"id":287084166,"uuid":"963550617","full_name":"Rodrigo-Kelven/API-Flask-JWT","owner":"Rodrigo-Kelven","description":"Esta é uma API simples construída com Flask que implementa autenticação usando JSON Web Tokens (JWT). A API permite o registro de usuários, login e acesso a rotas protegidas.","archived":false,"fork":false,"pushed_at":"2025-05-14T00:10:58.000Z","size":1588,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T22:32:19.874Z","etag":null,"topics":["docker","docker-compose","flask","python3","sqlalchemy","sqlite-database"],"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/Rodrigo-Kelven.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,"zenodo":null}},"created_at":"2025-04-09T21:12:21.000Z","updated_at":"2025-05-14T22:56:17.000Z","dependencies_parsed_at":"2025-05-07T16:15:34.760Z","dependency_job_id":"7c902c5a-a37a-4898-9737-0322f6739269","html_url":"https://github.com/Rodrigo-Kelven/API-Flask-JWT","commit_stats":null,"previous_names":["rodrigo-kelven/teste","rodrigo-kelven/api-flask-jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rodrigo-Kelven/API-Flask-JWT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-Kelven%2FAPI-Flask-JWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-Kelven%2FAPI-Flask-JWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-Kelven%2FAPI-Flask-JWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-Kelven%2FAPI-Flask-JWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rodrigo-Kelven","download_url":"https://codeload.github.com/Rodrigo-Kelven/API-Flask-JWT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-Kelven%2FAPI-Flask-JWT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","flask","python3","sqlalchemy","sqlite-database"],"created_at":"2025-05-07T16:15:22.344Z","updated_at":"2026-01-21T09:31:44.225Z","avatar_url":"https://github.com/Rodrigo-Kelven.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Flask com Autenticação JWT\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) \n![Flask](https://img.shields.io/badge/flask-%23000.svg?style=for-the-badge\u0026logo=flask\u0026logoColor=white) \n![SQLite](https://img.shields.io/badge/sqlite-%2307405e.svg?style=for-the-badge\u0026logo=sqlite\u0026logoColor=white) \n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-%23C72C41.svg?style=for-the-badge\u0026logo=sqlalchemy\u0026logoColor=white)\n\n\nEsta é uma API simples construída com Flask que implementa autenticação usando JSON Web Tokens (JWT). A API permite o registro de usuários, login e acesso a rotas protegidas.\n\n## Funcionalidades.\n\n- Registro de novos usuários\n- Login de usuários existentes\n- Geração de tokens JWT para autenticação\n- Acesso a rotas protegidas com autenticação JWT\n\n## Tecnologias Utilizadas.\n\n- Python 3.x\n- Flask\n- Flask-SQLAlchemy\n- Flask-Migrate\n- PyJWT\n- SQLite (banco de dados)\n\n## Pré-requisitos.\n\nAntes de começar, você precisará ter o Python e o pip instalados em sua máquina. Você pode baixar o Python [aqui](https://www.python.org/downloads/).\n\n## Instalação:\n\n### 1. Clone o repositório:\n\n   ```bash\n   git clone https://github.com/Rodrigo-Kelven/API-Flask-JWT.git\n   cd API-Flask-JWT\n   ```\n### 2. Instale as dependencias:\n   ```bash\n   pip install -r requirements.txt\n   ```\n### 3. Rode a API:\n   ```bash\n   python app.py --reload\n   ```\n\n# Usando Insomnia\n## Criando uma coleção para guardar as url's.\n![Minha Imagem](images/Parte1.png)\n\n## Cadastrando as url's.\n![Minha Imagem](images/Parte2.png)\n\n## Testando a primeira rota.\n![Minha Imagem](images/Parte3.png)\n\n## Criando usuário.\n![Minha Imagem](images/Parte4.png)\n\n## Pegando token de login.\n![Minha Imagem](images/Parte5.png)\n\n## Passando o token no lugar correto.\n![Minha Imagem](images/Parte6.png)\n\n## Acessando a rota protegida, so é possivel acessar passando o token de login.\n![Minha Imagem](images/Parte7.png)\n\n## Autores\n- [@Rodrigo_Kelven](https://github.com/Rodrigo-Kelven)\n\n## Colaboradores\n- [@Tiago-Dev0708](https://github.com/Tiago-Dev0708)\n- [@Wesley Thiago](https://github.com/Wesley0071)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-kelven%2Fapi-flask-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigo-kelven%2Fapi-flask-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-kelven%2Fapi-flask-jwt/lists"}