Skip to main content
Form Platform
Guide 02 / 021 min read

API and Database Architecture

Data modeling and REST API endpoints for the Form Platform.

Relational Persistence#

The platform persists structured form definitions and user submissions in PostgreSQL:

  • Form Records: Hold metadata such as form titles, descriptions, target recipient rules, and active status.
  • Submission Records: Store timestamped payloads linked by foreign key back to their parent form definition.
  • Data Integrity: Enforced via relational constraints, ensuring submissions cannot exist without a valid parent form entity.

RESTful Endpoints#

The API is organized around standard HTTP verbs and status codes:

  • Form definitions are queried and updated through standard resource endpoints.
  • Submissions are accepted via validated HTTP POST requests.
  • Server responses return structured JSON with consistent error envelopes when validation fails.