Service Layer low complexity backend
1
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Next.js API route handler that receives demo booking form submissions, validates all input server-side, persists the lead record to the database, and triggers the confirmation email flow. Acts as the authoritative backend for lead capture.

Feature: Booking Form

booking-service

Responsibilities

  • Validate and sanitize all incoming booking form fields server-side
  • Persist new booking lead records via the booking repository
  • Trigger confirmation email dispatch after successful save
  • Return structured success or error responses to the form widget

Interfaces

POST /api/v1/bookings
createBooking(data: BookingInput): Promise<Booking>
validateBookingInput(data: unknown): BookingInput

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component