feat: service dependencies

Issue #6
This commit is contained in:
Chris Milne 2026-05-27 13:43:06 +01:00
parent d0c8c6c297
commit 75f5bc79da
4 changed files with 59 additions and 20 deletions

View file

@ -9,6 +9,9 @@ from pydantic import ConfigDict
from src.schemas import CustomBaseModel
class ServiceIDMixin(CustomBaseModel):
service_id: int
class ServiceResponse(CustomBaseModel):
model_config = ConfigDict(from_attributes=True, extra="ignore")
@ -27,5 +30,11 @@ class ServicePostServiceRequest(CustomBaseModel):
class ServicePostServiceResponse(CustomBaseModel):
service: ServiceWithKeyResponse
class ServicePatchKeyRequest(ServiceIDMixin):
pass
class ServicePatchKeyResponse(CustomBaseModel):
service: ServiceWithKeyResponse
class ServiceDeleteServiceRequest(ServiceIDMixin):
pass