An open API service indexing awesome lists of open source software.

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.

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/