mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-08 10:26:52 +01:00
Sync knowledge articles with review agent instructions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f562fba837
commit
5bcdc55df9
62 changed files with 768 additions and 58 deletions
|
|
@ -0,0 +1,17 @@
|
|||
codeunit 50240 "Sec Sample Url Good"
|
||||
{
|
||||
procedure Sync(ServiceUrl: Text)
|
||||
var
|
||||
Client: HttpClient;
|
||||
Response: HttpResponseMessage;
|
||||
Uri: Codeunit Uri;
|
||||
ExpectedBaseUrl: Text;
|
||||
begin
|
||||
ExpectedBaseUrl := 'https://api.contoso.com';
|
||||
|
||||
if not Uri.AreURIsHaveSameHost(ServiceUrl, ExpectedBaseUrl) then
|
||||
Error('Service URL must point to api.contoso.com.');
|
||||
|
||||
Client.Get(ServiceUrl, Response);
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue