1
0
Fork 0
forked from sr2/cloud-api

docs: contact docstrings

Issue: #13
This commit is contained in:
Chris Milne 2026-05-28 11:22:12 +01:00
parent 42349b0182
commit 39d3f2d560
9 changed files with 14 additions and 55 deletions

View file

@ -1,7 +1,3 @@
"""
Configurations for contact module
Configurations:
- List: Description
- Configs: Description
Configurations for the contact module
"""

View file

@ -1,7 +1,3 @@
"""
Constants and error codes for contact module
Constants:
- List: Description
- Consts: Description
Constants for the contact module
"""

View file

@ -1,11 +1,3 @@
"""
Router dependencies for contact module
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Dependencies for the contact module
"""

View file

@ -1,9 +1,8 @@
"""
Module specific exceptions for contact module
Exceptions related to the contact module
Exceptions:
- List: Description
- Exceptions: Description
Exports:
- ContactNotFoundException: Takes an optional contact ID int
"""
from typing import Optional

View file

@ -1,9 +1,9 @@
"""
Database models for contact module
Database models for the contact module
Models:
- Contact: id[pk], email, first_name, last_name, phonenumber, vat_number
street_address, post_office_box_number, address_locality, country_code, address_region, postal_code
street_address, street_address_line_2, post_office_box_number, address_locality, country_code, address_region, postal_code
"""
from sqlalchemy import Column, Integer, String, ForeignKey

View file

@ -1,13 +1,5 @@
"""
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
Router endpoints for the contact module
"""
from fastapi import APIRouter

View file

@ -1,9 +1,9 @@
"""
Pydantic models for contact module
Pydantic models for the contact module
Models:
- List: Description
- Models: Description
- ContactAddress
- ContactModel: Contains ContactAddress as a property
"""
from typing import Optional

View file

@ -1,11 +1,3 @@
"""
Module specific business logic for contact module
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Module specific business logic for the contact module
"""

View file

@ -1,11 +1,3 @@
"""
Non-business logic reusable functions and classes for contact module
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Non-business logic reusable functions and classes for the contact module
"""