REST APIs for Output management id175UB30E05Z
The following REST APIs are available for managing output in AEM Guides.
Get all output presets for a DITA map get-output-presets-dita-map
A POST method that retrieves all output presets configured for a DITA map.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operation
getalloutputs
.Note: The value is case-insensitive.
sourcePath
Response values:
Returns an array of JSON Output Preset objects, each object containing the following elements:
outputName
outputType
- AEMSITE
- HTML5
- EPUB
- CUSTOM
outputTitle
ditaValPathList
targetPath
siteName
templatePath
searchScope
local
.generateTOC
generateBreadcrumbs
overwriteStrategy
pdfGenerator
- DITAOT
- FMPS
DitaValPath
element is no longer supported.Create output preset
A POST method that creates a new output preset for a DITA map.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operation
createoutput
.Note: The value is case-insensitive.
sourcePath
outputTitle
Note: When a new output preset is created, the back-end system drives a unique name for the output preset from the given title.
outputType
- AEMSITE
- HTML5
- EPUB
- CUSTOM
Response values:
outputName
outputTitle
parameter.Save output preset
A POST method that saves changes made in an output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operation
saveoutput
.Note: The value is case-insensitive.
sourcePath
outputObj
outputObj.outputName
property contains the name of the output preset that is to be updated. For the format of the JSON object, see the Response values table in Get all output presets for a DITA map.Response values:
Returns a HTTP 200 (Successful) response.
Get a specific output preset
A POST method that retrieves an existing output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operation
getoutput
.Note: The value is case-insensitive.
sourcePath
outputName
Response values:
outputName
outputType
- AEMSITE
- HTML5
- EPUB
- CUSTOM
outputTitle
ditaValPathList
targetPath
siteName
siteTitle
templatePath
searchScope
local
.generateTOC
generateBreadcrumbs
overwriteFiles
pdfGenerator
- DITAOT
- FMPS
DitaValPath
element is no longer supported.Generate output
A GET method that generates output using one or more output presets.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
operation
GENERATEOUTPUT
.Note: The value is case-sensitive.
source
outputName
Response values:
Returns a HTTP 200 (Successful) response.
Generate incremental output
A GET method that generates incremental output for an AEM Site using one or more output presets.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
operation
INCREMENTALPUBLISH
.Note: The value is case-sensitive.
contentPath
{
{
"ditamap":
"/content/dam/sample/sample.ditamap",
"topics": [
"/content/dam/sample/topic1.xml",
"/content/dam/sample/topic2.xml"
],
"fullMaps": [
"/content/dam/sample/submap.ditamap"
],
"maps": [
"/content/dam/sample/keyspace.ditamap"
],
"outputs": [
"aemsite"
]
}
}
- The
ditamap
attribute takes the absolute path of the DITA map that is used to generate the output. - The
topics
attribute takes an array of topics that are updated and need to be republished. - The
fullMaps
attribute contains path of the map files (like chunked submaps) that are needed along with their topics for incremental output generation. - The
maps
attribute contains path of the map files (for resolving keyspace references) that are extracted on the disk without topics. - The
outputs
attribute takes an array of output preset names that are used to generate the output.
Response values:
Returns a HTTP 200 (Successful) response.
Delete output preset
A POST method that deletes an output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operation
deleteoutput
.Note: The value is case-insensitive.
sourcePath
outputName
Response values:
Returns a HTTP 200 (Successful) response.