mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
- add outbound HttpClient transport and HTTP status review rules with paired fixtures`n- resolve layered action-skill overrides deterministically across enabled layers`n- validate findings reports and enforce measurable changed-fixture coverage
18 lines
No EOL
544 B
AL
18 lines
No EOL
544 B
AL
codeunit 50100 "Http Platform Failure Bad"
|
|
{
|
|
procedure GetCustomer(CustomerId: Guid): Text
|
|
var
|
|
Client: HttpClient;
|
|
Response: HttpResponseMessage;
|
|
ResponseText: Text;
|
|
RequestSucceeded: Boolean;
|
|
begin
|
|
RequestSucceeded := Client.Get(
|
|
StrSubstNo('https://api.example.com/customers/%1', CustomerId),
|
|
Response);
|
|
|
|
// Response content is unavailable when the platform call failed.
|
|
Response.Content().ReadAs(ResponseText);
|
|
exit(ResponseText);
|
|
end;
|
|
} |