Community Contributors ✨
We wanted to give a shoutout to the open-source contributors who shipped some great work on the Open-Source repository:
Stoked to see this in production and bettering the Scalar API References ✨
FastAPI Integration
We couldn't be more excited to be releasing our Scalar FastAPI integration today 🥳.
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints.
It's incredibly easy to get started, first install the python package
pip install scalar-fastapi
Then add a route to render your Scalar Docs
from typing import Union
from fastapi import FastAPI
from scalar_fastapi import get_scalar_api_reference
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/scalar", include_in_schema=False)
async def scalar_html():
return get_scalar_api_reference(
openapi_url=app.openapi_url,
title=app.title + " - Scalar",
)
That's it! Now you got beautiful Scalar API References for your FastAPI app 😮💨
Fixes & Improvements
So much work was put into smaller improvements + UX of our app, all the small details make the world of difference ✨
Join us:
Marc
CEO & Co-Founder, Scalar