My First Crud API With Python Flask Framework
- [Python3] (https://www.python.org/)
- [Flask] Framework (https://flask.palletsprojects.com/en/2.2.x/)
- [SQLite] (https://www.sqlite.org/)
- [GIT] (https://git-scm.com/)
- [Postman] (https://www.postman.com/)
- Crud API
- git clone https://github.com/dzakitajudin/PythonApiFlask.git
- Open Terminal and go to project directory
- Create Virtual Environment by type: pip3 install pipenv
- Terminal type: pipenv shell
- Install Flask by terminal type: pipenv install flask flask-sqlalchemy flask-marshmellow marshmellow-sqlalchemy
to run application, type in terminal: python app.py Then show debugger and running on http://127.0.0.1:5000/ for default
You can test api using postman
- Open your postman application
- Import file Python-API.postman_collection.json
- Test all request
because it is my first api in python, there are some error in response when hit services. i dont know why that happen, but for save,update,delete process is work and data was stored in database.