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
Handling PUT and DELETE requests requires a bit more work and control than GET and POST do. Let me show you how to handle these two really useful HTTP methods.
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
And then you'll be able to see the get and
post methods.
0:00
So like here's the post for
courses and the stuff for views.
0:00
I want to talk about what I
did in reviews real quick.
0:06
Some of you may have noticed this,
0:11
I kinda left it in to see how
your debugging skills were.
0:12
But if you leave your review
fields as just course,
0:15
which is fine, then it becomes really hard
to turn it into the URL for the course.
0:19
So I actually added a new
one called for_course,
0:24
and we just set that to
be where the course goes.
0:27
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