Skip to content

cetinol/flask_restful

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

RESTful API creation using Flask.

Based off of the below tutorial but with changes to use MySQL

Instructions:

  1. Install Flask
pip install flask-restful
  1. Install Flask-MySQL connector
pip install flask-mysql
  1. Run script
python restful_mysql.py
  1. Use a program like Postman to perform GET, POST, PUT, and DELETE operations.

GET

http://127.0.0.1:5000/user/
http://127.0.0.1:5000/users/list

POST, PUT

http://127.0.0.1:5000/user/
key: age
key: occupation

Delete

http://127.0.0.1:5000/user/

About

Python Flask Restful API example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%