9 lines
212 B
Python
9 lines
212 B
Python
from fastapi import FastAPI
|
|
from typing import List
|
|
|
|
app = FastAPI()
|
|
|
|
@app.get("/countries", response_model=List[str])
|
|
def get_countries():
|
|
return ["USA", "Canada", "Germany", "France", "Japan", "Australia"]
|