Put in order · Python course · Module 6: Async and FastAPI

Minimal FastAPI application

Arrange a minimal FastAPI application:

Items to put in order

  • @app.get('/')
  • app = FastAPI()
  • from fastapi import FastAPI
  • async def root():
  • return {'message': 'Hello Safari'}

You can check the correct answer by solving this task in the CodeWorlds game.