Questions tagged [fastapi]
The fastapi tag has no usage guidance.
10
questions
4
votes
1
answer
54
views
role_required decorator for FastAPI route
Disclaimer: It's been quite a long time since I asked questions here, and also I am a complete novice in FastAPI.
I am playing with FastAPI authorization and wondering how can I protect my routes from ...
2
votes
1
answer
51
views
Fast API endpoint handlers
I'm not so experienced at developing Fast API apps. As I program in different languages, I often get confused as how things are done in a python way.
I have this piece of code, and I would like to ...
4
votes
2
answers
223
views
Connecting MongoDB using Motor in FastAPI
What are the best practices for connecting to a database in FastAPI?
To provide some context, I want to write code to connect to a MongoDB database using Motor. My idea is to create a single ...
1
vote
1
answer
73
views
FastAPI not full utilization
I have Django development in background for several years. Now I am practicing more framework this time is FastAPI.
What program does:
It is todo tasks with undo feature.
I split the model into 2 ...
2
votes
1
answer
60
views
2
votes
1
answer
62
views
Users CRUD in fastapi using pymongo
I am building users API with CRUD operation in fastapi and i'd love to hear feedback about it. I have been exploring fastapi in the past weeks and im trying to create API with best practice (scalable -...
2
votes
1
answer
193
views
FastAPI repository endpoint for version control system
I am creating an API for a version control system. This is my first time creating an API (and a web project in general) and I wanted to get some feedback. I plan to connect this API to a frontend to ...
4
votes
1
answer
106
views
FastAPI Class based Design
I am new to the FastApi world. Can somebody review my below Fast API design? It is working but doesn't follow ...
1
vote
1
answer
112
views
Getting one company from two tables [closed]
Currently I'm working with fastapi, sqlalchemy to connect to multiple databases. It checks params to ensure it has company_name, ...
4
votes
0
answers
52
views
API for operators and alerts
Note: The important chunks of code are pasted in the question but the larger representation of the app is available on GitHub.
Some time ago I was tasked to create a simple FastAPI app. I did manage ...