mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-03 05:41:08 +08:00
* feat: add generating-eval-seed-data skill New skill that generates minimal seed-data stubs (custom fields, objects, Apex class stubs) for evaluation datasets in the afv-library. Adapted from the adk-eval-seed-data-generator with afv-library conventions and all PR #194 review feedback addressed (scoped allowed-tools, no hardcoded paths, progressive disclosure, skills referenced by name). * fix: replace stub eval data with real adk-core datasets Replace fabricated eval stubs with actual gold files and seed-data from adk-core: payment_overdue (formula field), AssetFedexValidationRule (validation rule with lookup deps), QueueableWithCalloutRecipes (Apex with class dependencies). * fix: remove related-skills from generating-eval-seed-data frontmatter * fix: use detailed allowed-tools command signatures * fix: scope allowed-tools to sf project deploy start only * fix: change stage from Draft to Pilot
21 lines
481 B
OpenEdge ABL
21 lines
481 B
OpenEdge ABL
public with sharing class RestClient {
|
|
public enum HttpVerb {
|
|
GET,
|
|
POST,
|
|
PUT,
|
|
PATCH,
|
|
DEL
|
|
}
|
|
|
|
public static HttpResponse makeApiCall(
|
|
String namedCredential,
|
|
HttpVerb method,
|
|
String path
|
|
) {
|
|
HttpRequest request = new HttpRequest();
|
|
request.setEndpoint('callout:' + namedCredential + '/' + path);
|
|
request.setMethod(method.name());
|
|
return new Http().send(request);
|
|
}
|
|
}
|