get_fastapi_router

get_fastapi_router(converter: Converter, route: str = '/sparql', **kwargs: Any) fastapi.APIRouter[source]

Get a router for fastapi.FastAPI.

Parameters:
  • converter – A converter

  • route – The route of the SPARQL service (relative to the base of the API router)

  • kwargs – Keyword arguments passed through to fastapi.APIRouter

Returns:

A router