Parking Lot API Documentation

Base URL: Hosted on AWS ECS

This service exposes parking lot inventory, floor and section lookup, parking-space mutation, analytics, diagnostics, chat, contact, and integration endpoints.

The production deployment is hosted on AWS using ECS behind the public API URL configured for this environment.

Public writes are limited to parking-space updates, analytics events, contact messages, and chat. Lot, floor, and section creation is handled outside the public API.

Capacity limits are enforced in the domain: lots may have up to 6 floors, floors up to 10 sections, and sections up to 10 parking spaces.

GET POST PUT DELETE

Parking Lots

Top-level parking lot lookup and nested floor details.

MethodEndpointDescription
GET/api/lotsGet all parking lots.
GET/api/lots/{id}Get a parking lot by ID.
GET/api/lots/{lotId}/floors/{floorId}/detailsGet floor details for a specific lot and floor.

Floors

Floor-level data within a parking lot.

MethodEndpointDescription
GET/api/floorsGet all floors.
GET/api/floors/{id}Get a floor by ID.

Sections

Sections group parking spaces on a floor.

MethodEndpointDescription
GET/api/sectionsGet all sections.
GET/api/sections/{id}Get a section by ID.

Parking Spaces

Parking-space lookup and occupancy updates.

MethodEndpointDescription
GET/api/spacesGet all parking spaces.
GET/api/spaces/{id}Get a parking space by ID.
PUT/api/spaces/{id}Assign a car to an empty parking space.
DELETE/api/spaces/{id}Remove a car from an occupied parking space.

Analytics

Record events and query aggregated analytics.

MethodEndpointDescription
POST/api/analyticsRecord an analytics event.
POST/api/analytics/searchQuery analytics with filters.

Chat and Contact

User-facing support endpoints.

MethodEndpointDescription
GET/api/recent-interactionsGet recent chatbot interactions.
POST/api/chatSubmit a chat question.
POST/api/contactSend a contact message.

Diagnostics, Integrations, and Events

Operational visibility, deployment info, and SSE updates.

MethodEndpointDescription
GET/api/diagnostics/pingLightweight health ping.
GET/api/diagnostics/apiAPI diagnostics including request and heap metrics.
GET/api/diagnostics/databaseDatabase diagnostics.
GET/api/diagnostics/mongodbMongoDB diagnostics.
GET/api/integrations/bkBuildkite build information.
GET/api/integrations/deployDeployment information.
GET/api/lots/{lotId}/floors/{floorId}/eventsSubscribe to floor SSE updates.

Sample JSON Request Bodies

Examples for the current write endpoints.

PUT

/api/spaces/{id}

{
  "color": "Red",
  "make": "Toyota",
  "model": "Corolla",
  "manufacturingYear": 2022,
  "licensePlate": "ABC-123"
}
POST

/api/chat

{
  "question": "How many floors are available?"
}
POST

/api/contact

{
  "subject": "Support request",
  "message": "I need help with a parking space update."
}