added structured api endpoints and done some refactoring
Some checks failed
Python formatting PEP8 / Python-PEP8 (push) Failing after 18s

This commit is contained in:
Finn Christiansen 2023-08-12 00:20:51 +02:00
parent a689b1c56d
commit d8607212da
15 changed files with 362 additions and 57 deletions

View file

@ -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)

View file

@ -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