Open willu47 opened 1 month ago
@willu47 This will require a complete migration from Flask to FastAPI. While it is theoretically possible to use both frameworks together, it is best practice to choose only one. FastAPI offers performance advantages and built-in features such as data validation with Pydantic and automatic OpenAPI documentation.
Okay, that's fine. We want separate endpoints for serving templates html and json via the api/
.
For example /author/<id>
delivers what we currently see on the website where /api/author/<id>
serves the underlying data for that author
Create API endpoints for the following: