API page canonical field name guide (LC0063)

API pages should use canonical field names that follow standard naming conventions for OData/REST APIs. This ensures consistency and improves discoverability for API consumers.

Example

The following API page uses non-canonical field names:

page 50100 "My API Page"
{
    PageType = API;
    EntityName = 'customer';
    EntitySetName = 'customers';

    layout
    {
        area(Content)
        {
            field(Customer_Name; Rec.Name) // API page canonical field name guide [LC0063]
            {
            }
        }
    }
}

To fix this, use canonical field names:

page 50100 "My API Page"
{
    PageType = API;
    EntityName = 'customer';
    EntitySetName = 'customers';

    layout
    {
        area(Content)
        {
            field(name; Rec.Name)
            {
            }
        }
    }
}