#100DaysOfWeb in Python Transcripts
Chapter: Days 9-12: API Star
Lecture: Lesson introduction
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Hello and welcome back to the 100 Days of Web in Python. You're already at day nine that means you're almost 10% in.
0:08
And this is your first lesson with me. I'm very excited to be teaching you and we're going to tackle an interesting topic for the web which are APIs.
0:16
Especially building APIs with API Star. First I do an introduction about APIs are and why you want to use them.
0:23
Then we get some fake data from the Mockaroo service. Because for any API you need some data, right? Then we're going to set up the environment.
0:33
So we'll make a virtual environment. Install API Star and Pytest for later use. Then we're going to create the API, routes
0:42
the app server, a car class which uses the powerful typing framework that gets us validation and serialization outof the box.
0:50
And finally we write all the CRUD methods. So we'll create, read, update and delete. We test the API with a tool called Postman.
1:00
Very convenient for API development. And lastly I'm writing some tests with Pytest to automate that. Meaning in Postman we can test the API
1:11
but it's all manual. So in the last step I use Pytest and API Star's test client to write some tests so that we can just run the tests automatically
1:21
every time we make a change. Finally the last two days you will build your own API with some data sets I point you to.
1:29
And you put into practice the concepts you've learned in these videos. There's a lot to learn. There's a lot of interesting stuff
1:35
you can take away from this module. So let's dive straight in. Good luck.