Loading video…
Hook

Their other posts in the index, biggest breakout first.
I'm going to create an API with two different endpoints and it's going to take under a minute. I'm going to show you exactly how to do it. From FastAPI import FastAPI. App equals FastAPI. Now we want to create our base root. App.get. Def root. Return message Hello from API. Next endpoint. App.get. CSV. Def CSV. CSV content equals name, age, city. Alice, 30, New York. Bob, 25, LA. Return Response. Content equals CSV content, media type equals text/csv. Now when you go here, we see name, age, city, Alice, 30, New York, Bob, 25, LA.