Create a Fast API Server Flashcards
1
Q
What is a FastAPI server
A
llows users to fetch data from a variety of external APIs (e.g. dog facts, daily quotes, etc)
2
Q
The simplest FastAPI file could look like this:
A
from fastapi import FastAPI
app = FastAPI()
@app.get(“/”)
async def root():
return {“message”: “Hello World”}
3
Q
Link to documentation
A
https://fastapi.tiangolo.com/tutorial/first-steps/