cloud-api/src/contact/router.py

18 lines
556 B
Python
Raw Normal View History

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
"""
from fastapi import APIRouter
2026-04-06 12:41:49 +01:00
router = APIRouter(
prefix="/contact",
tags=["contact"],
)