Modern APIs with FastAPI and Python Transcripts
Chapter: Accepting inbound data
Lecture: Inbound data introduction
0:00 What we've created so far is a really nice API,
0:02 and it lets people get reports on the weather in different locations.
0:06 What is the current weather basically anywhere within the world
0:09 and as long as we've interacted with that recently,
0:11 we can do that in a super fast way,
0:13 good error messages and so on.
0:14 But something is missing from the API.
0:17 A couple things are missing, but the most important thing that you probably care about
0:21 is having an API that not just returns data but accepts data from the user and
0:26 saves it back into a database or some something like a database.
0:30 So in this chapter, what we're gonna do is we're gonna add the ability for
0:33 users to report unique weather events like "I just saw a tornado" or "it's hailing in
0:38 my neighborhood" things like that. So you'll enter a location and some sort of weather report
0:43 and store that and then on the home page or through the API
0:46 we'll let people see what that looks like.
0:49 What is happening currently in different locations,
0:52 you know, we're not going to get super advanced.
0:54 Not like "show me events near me".
0:56 It'll just be the recent stuff happening in the world.
0:58 But obviously you can enhance it from there.
1:00 So that's the idea of this chapter, is
1:02 to take what we built so far and allow other systems,
1:05 other users, other apps and so on
1:07 to contribute back and to add data to it,
1:09 not just consume data from the open weather map.