✨ added structured api endpoints and done some refactoring
Some checks failed
Python formatting PEP8 / Python-PEP8 (push) Failing after 18s
Some checks failed
Python formatting PEP8 / Python-PEP8 (push) Failing after 18s
This commit is contained in:
parent
a689b1c56d
commit
d8607212da
15 changed files with 362 additions and 57 deletions
|
@ -5,7 +5,7 @@ from pydantic import BaseModel
|
|||
from sqlalchemy.orm import Session
|
||||
from fastapi import HTTPException
|
||||
|
||||
from database import Base
|
||||
from db.database import Base
|
||||
|
||||
ModelType = TypeVar("ModelType", bound=Base)
|
||||
CreateSchemaType = TypeVar("CreateSchemaType", bound=BaseModel)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from models import Item
|
||||
from schemas.schemas import ItemCreate, ItemUpdate
|
||||
from schemas.item import ItemCreate, ItemUpdate
|
||||
from crud.base import CRUDBase
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue