Path Operation

say it: “path op-er-AY-shun” /pæθ ˌɑpəˈreɪʃən/

A URL path plus HTTP method, and the function that handles it.

What is Path Operation?

A path operation is FastAPI's name for a URL path plus an HTTP method (like GET /recipes), and the function that handles it.

@app.get('/recipes')
def list_recipes():
    return recipes

Level: Novice · More FastAPI terms at this level

Updated