mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
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>
34 lines
902 B
AL
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';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|