NEW: Fenrir v1.2.2 is now available — Logo & Favicon Patch! Read the changelog
basic-concepts.md
docs basic-concepts.md

Basic Concepts

Fenrir Application

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from fenrir import Fenrir

app = Fenrir(
    title="My Application",
    version="1.0.0",
    description="An amazing application",
    docs_url="/docs",           # Swagger UI endpoint
    redoc_url="/redoc",         # ReDoc endpoint
    openapi_url="/openapi.json" # OpenAPI schema endpoint
)

HTTP Methods

Fenrir supports all standard HTTP methods:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@app.get("/path")
async def get_handler():
    pass

@app.post("/path")
async def post_handler():
    pass

@app.put("/path")
async def put_handler():
    pass

@app.delete("/path")
async def delete_handler():
    pass

@app.patch("/path")
async def patch_handler():
    pass

@app.options("/path")
async def options_handler():
    pass
Edit on GitHub Last Updated: Jun 04, 2026
© 2026 Fenrir Project.
main*
v1.2.2
Ln 1, Col 1
UTF-8
Prettier
Light Mode
Markdown