Thanks Mike, that helped me figure it out.

I carelessly copied the curl command from the docs and was posting a zip
file with content-type application/xml instead of zip. This still returned
"200 package created", so I was concentrating on why the install step
didn¹t work..

Rob




On 30/05/2014 19:57, "Michael Blakeley" <[email protected]> wrote:

>Does https://github.com/marklogic/RunDMC/blob/docapp/install-apidoc.sh
>help?
>
>The interesting stuff starts around line 55. It builds a zip from the
>contents of 
>https://github.com/marklogic/RunDMC/tree/docapp/apidoc/package then
>uploads that with a curl request, and finally applies it with another
>curl request.
>
>The -e flag is set, so if anything goes wrong the script exits. However
>it's also logging curl output using tee, so after each of those
>statements it has to check PIPESTATUS.
>
>-- Mike
>
>On 30 May 2014, at 09:15 , Whitby, Rob <[email protected]> wrote:
>
>> Hi,
>> 
>> I¹m trying to use the packaging API, but I¹m missing the big picture of
>>how it works. The GUI doesn¹t seem to map directly to the REST API.  In
>>the GUI I can import a package, and apply it successfully. But I¹m not
>>sure how to do that with the API.
>> 
>> Here¹s how far I¹ve got:
>> 
>> 1. Upload the package: POST package.zip to
>>/manage/v2/packages?pkgname=somepackage
>> ‹> status 200 Created somepackage
>> 
>> 2. Install the package: POST (with empty body) to
>>/manage/v2/packages/somepackage/install
>> --> status 200 "success=true" but no changes are applied. The ticket
>>has nothing under ³install-list², unlike when the same package is
>>applied in the GUI.
>> 
>> Clearly I don¹t understand how the API is meant to be used ­ any
>>pointers to examples or documentation?
>> 
>> Thanks
>> Rob
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>
>_______________________________________________
>General mailing list
>[email protected]
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to