"Retter, Adam (RBI-UK)" <[email protected]> writes: > Previously with ML6 we were HTTP POST’ing a package to configure a > clean install of an ML instance. The package API has changed in ML7 > and we are having a hard time understanding exactly how it works and > which end-point to use.
Hi Adam,
Sorry it appears to have become more complicated. Supporting new features
made a single XML document impractical.
However, the old package format is still supported. If you've got a 6.x
package named "package.xml" in hand, you can install it in three steps:
1. Create the package "newpack". The name is irrelevant.
curl -s -X POST --digest -u admin:admin --data-ascii @/dev/null \
-H "Accept: application/xml" -H "Content-Type: application/xml" \
"http://localhost:8002/manage/v2/packages?pkgname=newpack&format=xml"
2. Add the contents of your MarkLogic 6 package to it:
curl -s -X POST --digest -u admin:admin -d @package.xml \
-H "Accept: application/xml" -H "Content-Type: application/xml"
"http://localhost:8002/manage/v2/packages/newpack"
3. Install it:
curl -s --data-binary @/dev/null --digest -u admin:admin \
-H "Accept: application/xml"
"http://localhost:8002/manage/v2/packages/newpack/install?format=xml"
Hope that helps. And sorry again about the confusion.
Be seeing you,
norm
--
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com
signature.asc
Description: PGP signature
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
