Add endpoint for creating local contacts with access control

Introduced a new `local_contact_router` to handle creation of local contacts. The endpoint enforces role-based access control and ensures no duplication of email addresses. Updated the router exports for consistency and cleaned up a large test file to improve readability.
This commit is contained in:
GotthardG
2025-02-26 09:58:19 +01:00
parent 43d67b1044
commit f588bc0cda
13 changed files with 360 additions and 418 deletions

View File

@ -77,6 +77,8 @@ def load_sample_data(session: Session):
serial_numbers,
slots,
sample_events,
local_contacts,
beamtimes,
)
# If any data exists, don't reseed
@ -95,5 +97,8 @@ def load_sample_data(session: Session):
+ serial_numbers
+ slots
+ sample_events
+ local_contacts
+ beamtimes
)
session.commit()