bcquality/microsoft/knowledge/web-services/name-api-entities-with-singular-and-plural-camelcase.bad.al
Jesper Schulz-Wedde 2da72e782a Seed web-services (API v2) knowledge domain
Add eight web-services API page knowledge articles (each with .good.al/.bad.al samples), a new al-web-services-review leaf skill, and wire it into al-code-review and the README.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-25 12:35:53 +02:00

34 lines
902 B
AL

// Swapped and miscased entity names: EntityName is plural and PascalCase while
// EntitySetName is singular. The single-record name reads as a collection and
// vice versa, and the leading capitals violate camelCase.
page 50343 "WS Entity Naming Bad"
{
PageType = API;
APIPublisher = 'contoso';
APIGroup = 'sales';
APIVersion = 'v1.0';
EntityName = 'Customers';
EntitySetName = 'Customer';
ODataKeyFields = SystemId;
SourceTable = Customer;
DelayedInsert = true;
layout
{
area(content)
{
repeater(records)
{
field(id; Rec.SystemId)
{
Caption = 'id';
Editable = false;
}
field(displayName; Rec.Name)
{
Caption = 'displayName';
}
}
}
}
}