-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Repository and Service pattern, SQL Model and async engine on a V2 version #1199
-
First Check
- I added a very descriptive title here.
- I used the GitHub search to find a similar question and didn't find it.
- I searched in the documentation/README.
- I already searched in Google "How to do X" and didn't find any information.
- I already read and followed all the tutorial in the docs/README and didn't find an answer.
Commit to Help
- I commit to help with one of those options 👆
Example Code
Description
First of all, thanks for providing such a good content for us all. Second, I have been struggling to setup a good backend API, as you know, many moving parts and workflows to test. While trying to do so, I stumbled on patterns Repository
and Service
, which are good practices described, among others, on [1]. IT would be very helpful to have such, and extend the current backend counterpart.
[1] https://medium.com/@kacperwlodarczyk/fast-api-repository-pattern-and-service-layer-dad43354f07a
Example provided on blog https://medium.com/@kacperwlodarczyk/fast-api-repository-pattern-and-service-layer-dad43354f07a
Operating System
Linux
Operating System Details
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Python Version
Python 3.8.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.