# ScreenToApiMapping

**Kind:** Interface

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/types/cross-language.types.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/types/cross-language.types.ts#L35)

## Properties

| Property | Type |
|---|---|
| `screenId` | `string` |
| `screenName` | `string` |
| `screenPath` | `string` |
| `apiCalls` | `Array<{
    method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
    endpoint: string; // "/api/sales/orders"
    controllerId?: string; // Entity ID of controller
    controllerName?: string; // "SalesOrderController"
    purpose: string; // "Create new order"
  }>` |
| `userActions` | `Array<{
    trigger: 'button_click' | 'form_submit' | 'page_load' | 'auto';
    label: string; // "Submit Order"
    resultingCall: string; // endpoint reference
  }>` |
