Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Moving over to using Flask blueprints #15

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Moving over to using Flask blueprints #15

wants to merge 7 commits into from

Conversation

azharichenko
Copy link
Member

@azharichenko azharichenko commented Dec 20, 2017

So I changed the structure over to using blueprints. The reason for this is they allow scalability and give us a lot of flexibility. We are now able to have separate versions of the API if we decided to change endpoints or add on more APIs.

Other changes include making the app is just a function inside of the __init__.py. In views.py you can create another endpoint and it will automatically get added to the API's blueprint. All endpoints (or a.k.a. Resources) now need to contain a static variable of their endpoint path.

Also removed one textbook endpoint when no term is entered. Since it requires figuring out what the current term is.

@azharichenko
Copy link
Member Author

Hey, is there anyone able to review my changes?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant