{"id":22008943,"url":"https://github.com/adevecchi/flask-rest-api-jwt","last_synced_at":"2026-04-18T02:31:35.037Z","repository":{"id":130892926,"uuid":"330106026","full_name":"adevecchi/flask-rest-api-jwt","owner":"adevecchi","description":"API REST com a funcionalidade de Produtos Favoritos dos Clientes escrito em Python com Flask, SQLAlchemy e JWT utilizando banco de dados MySQL","archived":false,"fork":false,"pushed_at":"2021-01-16T07:13:53.000Z","size":276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T07:30:22.538Z","etag":null,"topics":["api","flask","jwt","mysql","python","rest","sqlalchemy"],"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/adevecchi.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":"2021-01-16T07:12:21.000Z","updated_at":"2021-01-16T07:16:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"927ec541-5876-4990-8233-05e78d80a9d8","html_url":"https://github.com/adevecchi/flask-rest-api-jwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adevecchi/flask-rest-api-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevecchi%2Fflask-rest-api-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevecchi%2Fflask-rest-api-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevecchi%2Fflask-rest-api-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevecchi%2Fflask-rest-api-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adevecchi","download_url":"https://codeload.github.com/adevecchi/flask-rest-api-jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevecchi%2Fflask-rest-api-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["api","flask","jwt","mysql","python","rest","sqlalchemy"],"created_at":"2024-11-30T02:07:47.861Z","updated_at":"2026-04-18T02:31:35.023Z","avatar_url":"https://github.com/adevecchi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Descrição\n\nAPI REST com a funcionalidade de Produtos Favoritos dos Clientes escrito em Python com Flask, SQLAlchemy e JWT utilizando banco de dados MySQL.\n\nVersão utilizado do Python v3.9.0\n\n## Requisitos\n\n* Criar, Atualizar, Visualizar e Remover ***Clientes***\n  * O cadastro dos clientes deve conter apenas seu nome e endereço de e-mail\n  * Um cliente não pode se registrar duas vezes com o mesmo endereço de e-mail\n* Cada cliente só deverá ter uma lista de produtos favoritos\n* Em uma lista de produtos favoritos podem existir uma quantidade ilimitada de produtos\n  * Um produto não pode ser adicionado em uma lista caso ele não exista\n  * Um produto não pode estar duplicado na lista de produtos favoritos de um cliente\n  * A documentação da API de produtos pode ser visualizada neste link https://gist.github.com/Bgouveia/9e043a3eba439489a35e70d1b5ea08ec\n* O acesso à api deve ser aberto ao mundo, porém deve possuir autenticação e autorização\n\n## Estrutura do projeto\n\n![Estrutura projeto](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/estrutura.png)\n\n## Endpoints\n\n* Registra usuário: `POST /api/users/register`\n\n![Registra usuario](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/register.png)\n\n---\n\n* Login: `POST /api/users/login`\n\n![Login](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/login.png)\n\n---\n\n* Cria cliente: `POST /api/clients/`\n\n![Cria cliente](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/clients-create.png)\n\n---\n\n* Todos clientes: `GET /api/clients/`\n\n![Todos clientes](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/clients-all.png)\n\n---\n\n* Cliente por Id: `GET /api/clients/{id}`\n\n![Cliente por id](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/clients-id.png)\n\n---\n\n* Atualiza cliente: `PUT /api/clients/{id}`\n\n![Atualiza cliente](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/clients-update.png)\n \n---\n\n* Remove cliente: `DELETE /api/clients/{id}`\n\n![Remove cliente](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/clients-delete.png)\n\n---\n\n* Cria produtos favorito: `POST /api/clients/{client_id}/favorite/products`\n\n![Cria produtos favoritos](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/favorite-create.png)\n\n---\n\n* Todos produtos favoritos: `GET /api/clients/{client_id}/favorite/products`\n\n![Todos produtos favoritos](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/favorite-all.png)\n\n---\n\n* Produtos favorito por Id: `GET /api/clients/{client_id}/favorite/products/{product_id}`\n\n![Produtos favorito por id](https://github.com/adevecchi/flask-rest-api-jwt/blob/main/screenshot/favorite-id.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevecchi%2Fflask-rest-api-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadevecchi%2Fflask-rest-api-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevecchi%2Fflask-rest-api-jwt/lists"}