Consuming HTTP Services in Python Transcripts
Chapter: Consuming RESTful HTTP services
Lecture: Welcome to the blog explorer app
0:01 Let me introduce you to the application that we are going to be using
0:04 throughout this whole modifying data section and even a little bit afterwards.
0:08 And I am calling this the blog explorer.
0:11 So it's using this service that we've already seen in the previous video,
0:15 and this is our blog service and notice I am defining this base url,
0:19 the reason is we can also run this locally and we could switch this out
0:23 like a local host version which is included in the github repository with instructions
0:27 how to set it up and run it and all those kinds of things.
0:30 So if you are somewhere without internet,
0:33 you can replace this with the local version and run that,
0:36 So the idea basically is it's going to work around this concept of posts
0:39 and a post is going to have id, title, content,
0:42 it's going to have a published date, as a string and it's going to have a view count,
0:46 so what we are going to do is we are going to write a little app,
0:49 here you can see the made method and it's going to give you four basic options,
0:52 you can show the post with a list command,
0:55 you can add a new post with the "a" command,
0:58 you can update a post with the "u" command
1:02 and you can delete a post with the "d" command.
1:04 Now, just be aware there is some pre existing posts
1:06 which are shared by everybody who uses the service,
1:09 and those you can't update, you'll get a message about that,
1:11 but the ones you create you can update those and delete them,
1:14 so what we are going to do next is we are going to work on getting this list post to work,
1:19 you can see there is no real implementation other than this show bit here.
1:23 So I'll go and run it and show you we can say I would like to list
1:26 and it says to do get post soap because the get post is not implemented,
1:29 there are posts to show, if I do update, or delete, all of those just say look,
1:34 you got to write this, but this structure is in place for us to go to in the next set of videos,
1:39 the one thing that totally works right now, you can exit.