Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Flask REST API!
You have completed Flask REST API!
Preview
Now that the models exist, it's time to create the resources for the API.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
whatever, I'm gonna create
them as a directory.
0:00
And gotta click on that and
I'm going to call those resources
0:02
and then inside of here,
I need to make dunder and init.py.
0:08
And we don't need edit that file,
all right and
0:14
so now instead of here I'm going to
make a file for each of the resources.
0:17
It's a little easier to just break these
things up in multiple files because
0:20
they're a little bit bulky and you don't
have to do this but I highly suggest
0:24
doing this just because it makes
things a little easier to deal with.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up