Closed pun-ky closed 6 years ago
ok got it
curl -u admin:admin -X POST http://localhost:8080/bin/cpm/package.service.html?cmd=ls
however to be considered adding
class PackageUtil {
public static void toJson(JsonWriter writer, JcrPackageDefinition definition)
throws IOException {
// ...
if (lastUnpacked != null) {
writer.name(JcrPackageDefinition.PN_LAST_UNPACKED).value(dateFormat.format(lastUnpacked.getTime()));
}
// ...
}
}
I am building an automation which requires to have knowledge about all packages states on instance.
on AEM there was: /crx/packmgr/list.jsp
generally I don't need to know all of that details, but at least:
package group, package name, package version and state (installed, only uploaded).
Maybe there is some endpoint on Composum already serving this kind of data?
Greetings, Krystian