{"id":19341622,"url":"https://github.com/sectasy0/python-rest","last_synced_at":"2025-09-02T21:45:23.908Z","repository":{"id":86315470,"uuid":"269630005","full_name":"sectasy0/Python-REST","owner":"sectasy0","description":"Python flask rest api with token authorization","archived":false,"fork":false,"pushed_at":"2021-01-22T08:27:58.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-06T11:44:38.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sectasy0.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":"2020-06-05T12:34:23.000Z","updated_at":"2024-01-26T21:23:43.000Z","dependencies_parsed_at":"2023-03-13T09:49:24.866Z","dependency_job_id":null,"html_url":"https://github.com/sectasy0/Python-REST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectasy0%2FPython-REST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectasy0%2FPython-REST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectasy0%2FPython-REST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectasy0%2FPython-REST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sectasy0","download_url":"https://codeload.github.com/sectasy0/Python-REST/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240449242,"owners_count":19803120,"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":[],"created_at":"2024-11-10T03:31:44.688Z","updated_at":"2025-02-24T08:41:38.239Z","avatar_url":"https://github.com/sectasy0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Mongo RESTapi Example - with jwt-authentication\n\n### Installation\n```sh\n$ virtualenv auth\n$ cd auth \u0026\u0026 source bin/active\n$ git clone https://github.com/sectasy0/Python-REST\n$ pip install -r src/REQUIREMENTS.txt\n```\n\n### Configure database\n```\nOpen __init__.py and change 'host' value to your mongo database and db to your database name.\n```\n\n### Requests to api\n#### Register user\n```sh\n$ http POST :5000/api/v1.0/auth/register username=testuser password=testuserpassword email=test@email.com\n```\n#### Login user\n```sh\n$ http POST :5000/api/v1.0/auth/login username=testuser password=testuserpassword\n```\n#### Get all users\n```sh\n$ http GET :5000/api/v1.0/users Autorization:\"Bearer \u003cJWT-AccesToken\u003e\"\n```\n#### Get one user\n```sh\n$ http GET :5000/api/v1.0/users/\u003cuserName\u003e Autorization:\"Bearer \u003cJWT-AccesToken\u003e\"\n```\n#### Update user\n```sh\n$ http PUT :5000/api/v1.0/users/\u003cuserName\u003e Autorization:\"Bearer \u003cJWT-AccesToken\u003e\" username=newusername ...\n```\n\n#### delete user\n```sh\n$ http DELETE :5000/api/v1.0/users/\u003cuserName\u003e Autorization:\"Bearer \u003cJWT-AccesToken\u003e\"\n```\n\n#### Refresh access-token\n```sh\n$ http PUT :5000/api/v1.0/users/\u003cuserName\u003e Autorization:\"Bearer \u003cJWT-RefreshToken\u003e\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectasy0%2Fpython-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectasy0%2Fpython-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectasy0%2Fpython-rest/lists"}