2026-04-06 12:41:49 +01:00
|
|
|
"""
|
|
|
|
|
Router endpoints for contact module
|
|
|
|
|
|
|
|
|
|
Endpoints:
|
|
|
|
|
- [get]/{contact_id} - Returns non-address type details for contact
|
|
|
|
|
- [get]/{contact_id}/address - Returns address details for contact
|
|
|
|
|
- [get]/{contact_id}/orgs - Returns a list of orgs which the contact is assigned to, and what they are assigned as
|
|
|
|
|
- [post]/ - Creates a new contact
|
|
|
|
|
- [patch]/{contact_id} - Updates the details of an existing contact
|
|
|
|
|
- [delete]/{contact_id} - Deletes a contact by ID
|
|
|
|
|
"""
|
2026-05-25 15:15:50 +01:00
|
|
|
from fastapi import APIRouter
|
2026-05-19 11:11:03 +01:00
|
|
|
|
2026-04-06 12:41:49 +01:00
|
|
|
|
|
|
|
|
router = APIRouter(
|
|
|
|
|
prefix="/contact",
|
|
|
|
|
tags=["contact"],
|
2026-05-25 15:15:50 +01:00
|
|
|
)
|