https://github.com/abhimanyuhk/flask-rest-app
REST app in python flask for database interaction.
https://github.com/abhimanyuhk/flask-rest-app
flask mysql python3 rest-api
Last synced: about 2 months ago
JSON representation
REST app in python flask for database interaction.
- Host: GitHub
- URL: https://github.com/abhimanyuhk/flask-rest-app
- Owner: AbhimanyuHK
- License: gpl-3.0
- Created: 2018-12-26T11:37:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-06T10:50:53.000Z (over 7 years ago)
- Last Synced: 2025-06-25T13:03:30.226Z (about 1 year ago)
- Topics: flask, mysql, python3, rest-api
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Flask-Rest-App
## Scope
* Inserting rows to database
* Updating rows in database
* Fetching rows from database
* Deleting rows from database
## Install dependencies
``` $ pip install -r requirements.txt ```
## Run application
``` $ python script/flaskapp.py ```
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
## Insert rows
http://127.0.0.1:5000/create
```
{
"firstname" : "abhi",
"lastname" : "manyu",
"email" : "abhimanyu@gmail.com"
}
```
## Get row by id
http://127.0.0.1:5000/get/
## Get all rows
http://127.0.0.1:5000/all
## Delete row by id
http://127.0.0.1:5000/delete/
```
{
"firstname" : "abcd",
"lastname" : "wxyz",
"email" : "abcdwxyz@gmail.com"
}
```
## Update row
http://127.0.0.1:5000/update/