要使用批处理API,请创建批处理配置并根据该配置执行运行。 以下视频演示了如何使用API创建批量配置
请确保AEM用户属于
forms-users
进行API调用的组。
以下是用于创建批量配置的POST端点
<baseURL>/config
以下是创建批处理配置时需要指定的最小配置。 这需要作为JSON对象在HTTP请求正文中传递
{
"configName": "monthlystatements",
"dataSourceConfigUri": "/conf/batchapi/settings/forms/usc/batch/batchapitutorial",
"outputTypes": [
"PDF"
],
"template": "crx:///content/dam/formsanddocuments/formtemplates/custom_fonts.xdp"
}
要验证是否成功创建了批量配置,您可以对以下端点进行GET请求调用
<baseURL>/config/monthlystatements
您只需在HTTP请求正文中传递一个空的JSON对象