Skip to main content

Questions tagged [fastapi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

Nostr OAuth 2 authentication using Fastapi

I liked the idea of being able to authenticate using your own private key using Nostr protocol. The idea is based on events, so you prove your identity by signing an event. It's close to Wallet ...
uak's user avatar
  • 111
4 votes
1 answer
59 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 ...
John's user avatar
  • 217
2 votes
1 answer
55 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 ...
Alejo Villores's user avatar
4 votes
2 answers
227 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 ...
Heber Alturria's user avatar
1 vote
1 answer
77 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 ...
Sarit's user avatar
  • 113
2 votes
1 answer
63 views

Python REST API using FastAPI

...
user avatar
2 votes
1 answer
64 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 -...
Paul's user avatar
  • 23
2 votes
1 answer
200 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 ...
Doruk's user avatar
  • 361
4 votes
1 answer
110 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 ...
garg10may's user avatar
  • 244
1 vote
1 answer
116 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, ...
g3tl0st's user avatar
  • 111
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 ...
nitwit's user avatar
  • 501