{"id":18310992,"url":"https://github.com/cploutarchou/python_rest_api_with_mysql_and_flask","last_synced_at":"2025-04-09T12:10:51.180Z","repository":{"id":102206112,"uuid":"367447860","full_name":"cploutarchou/python_rest_api_with_mysql_and_flask","owner":"cploutarchou","description":" Python - Rest APIs tutorial using Flask \u0026 MySQL - phpMyAdmin","archived":false,"fork":false,"pushed_at":"2021-05-17T17:01:41.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T05:46:48.754Z","etag":null,"topics":["api","flask","flask-sqlalchemy","mysql","python","tutorial"],"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/cploutarchou.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":"2021-05-14T18:24:12.000Z","updated_at":"2021-05-17T17:01:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc7660a5-7701-4cb6-b2fb-48b5debfd32f","html_url":"https://github.com/cploutarchou/python_rest_api_with_mysql_and_flask","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/cploutarchou%2Fpython_rest_api_with_mysql_and_flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cploutarchou%2Fpython_rest_api_with_mysql_and_flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cploutarchou%2Fpython_rest_api_with_mysql_and_flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cploutarchou%2Fpython_rest_api_with_mysql_and_flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cploutarchou","download_url":"https://codeload.github.com/cploutarchou/python_rest_api_with_mysql_and_flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036066,"owners_count":21037092,"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","flask","flask-sqlalchemy","mysql","python","tutorial"],"created_at":"2024-11-05T16:16:06.472Z","updated_at":"2025-04-09T12:10:51.160Z","avatar_url":"https://github.com/cploutarchou.png","language":"Python","readme":"# Work in Progress........................................\n\n### **Python Rest CRUD API using Flask micro web framework**\n\nWe will build Rest Apis that can create, retrieve, update, delete and find Posts by title.\n\nThe following table shows overview of the Rest APIs that will be exported\n\n| Methods | Urls | Actions |\n|--|--|--| \n| GET | api/posts/all | Get all Posts |\n| GET | api/posts/:id| Get post by `id`|\n| POST |api/posts/create| Create new post |\n| PUT |api/posts/update/:id| Update post by `id` |\n| DELETE |api/posts/delete/:id| Delete post by `id` |\n| DELETE |api/posts/deleteall| Delete all posts| . \n| GET |api/posts/published| Get all published posts| \n| GET |api/posts?title=’test’| Get all posts which titlecontains `'test'`|\n| GET |api/posts/publisher?name=’christos’| Get All posts where publisher name is  `'christos'`|\n\nRename sample.evn to .env\n\n**Sample .evn configuration**\n__________________________________\n\n* MYSQL_USER=user\n* MYSQL_PASSWORD=pass\n* MYSQL_DB=restapi\n* MYSQL_HOST=127.0.0.1\n* MYSQL_PORT=3306\n* JWT_SECRET_KEY=Your secret key\n* FLASK_APP = app.py\n* FLASK_ENV = development\n* FLASK_DEBUG = 1\n\n\n You can download the postman collection with all API calls on the following  [URL](https://www.getpostman.com/collections/cad81248502ec45e3e70).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcploutarchou%2Fpython_rest_api_with_mysql_and_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcploutarchou%2Fpython_rest_api_with_mysql_and_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcploutarchou%2Fpython_rest_api_with_mysql_and_flask/lists"}