Fastapi: Does it have a class-based view?

Created on 30 Jun 2020  路  6Comments  路  Source: tiangolo/fastapi

Does it have a class-based view?

answered

All 6 comments

Follow FastAPI's template for questions, please: https://github.com/tiangolo/fastapi/blob/master/.github/ISSUE_TEMPLATE/question.md

Short answer: No.
Long answer: I don't know if your question makes sense without a context, so it's kind a difficult answering it.

There is an example in the FastAPI postgres starter repo: which implements CRUD CBV's in a generic way.

https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/app/crud/base.py

Used something like that in several apps that have simple CRUD requirements.

Not sure if it answers your question though.

See fastapi-utils package

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

Thanks for the help here, everyone! :cake:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PyDataBlog picture PyDataBlog  路  3Comments

zero0nee picture zero0nee  路  3Comments

devtud picture devtud  路  3Comments

scheung38 picture scheung38  路  3Comments

updatatoday picture updatatoday  路  3Comments