Python Forum
API REST Package for Calling/Flask
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API REST Package for Calling/Flask
#4
(Oct-16-2021, 06:39 PM)muzikman Wrote: Maybe Flask has a package for APIs? I know Flask has a something close to the MVC convention. However, I looked over the docs and it seems as though the app.py is similar to a controller in PHP frameworks. However, I don't like the idea of having all of my functions in one file.
There are serval eg Flask-REST-JSONAPI, Flask-RESTPlus.
A tutorial How to build a JSON API with Python

Quote:However, I don't like the idea of having all of my functions in one file
It's normal for any lager project to spilt up it in serval files eg views, model...ect,
in Flask you have full freedom(good and bad).
What i can mean bye bad is eg Django you get full project in a MVC style,in Flask you have to construct this yourself.
I use similar setup as this Organizing a Flask Project Beyond Single File
There are a lot tutorial for this in Flask and cookiecutter if search for Flask(cookiecutter) there are many project starter templates.
Reply


Messages In This Thread
API REST Package for Calling/Flask - by muzikman - Oct-16-2021, 06:39 PM
RE: API REST Package for Calling/Flask - by snippsat - Oct-16-2021, 08:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with return on REST API Flask korenron 0 1,338 Jun-13-2021, 10:40 AM
Last Post: korenron
  Calling Oracle REST SQL from Python johnjacob 2 2,079 Nov-05-2020, 04:19 AM
Last Post: johnjacob
  rest api parameter in flask bluefrog 3 3,331 Jun-21-2018, 05:03 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020