[MarkLogic Dev General] Management API: JSON payload for "path namespaces"

Florent Georges lists at fgeorges.org
Thu Sep 21 03:59:35 PDT 2017


Hi Jim,

Damn, got caught by this one again.  Thanks for the reminder.

Regards,

-- 
Florent Georges
H2O Consulting
http://h2o.consulting/


On 21 September 2017 at 12:51, Jim Fuller wrote:

> for json payloads, the convention is to use the singular for
> array keynames
>
> {
>   "path-namespace": [
>     {
>       "prefix": "ns",
>       "namespace-uri": "http://example.com/test"
>     }
>   ]
> }
>
> hth, J
>
> ------------------------------
> *From:* general-bounces at developer.marklogic.com <
> general-bounces at developer.marklogic.com> on behalf of Florent Georges <
> lists at fgeorges.org>
> *Sent:* 21 September 2017 12:44:41
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Management API: JSON payload for "path
> namespaces"
>
> Hi,
>
> I am trying to send an update request for the property "path namespaces"
> on a database (PUT /databases/{name}/properties), using a JSON payload.
> The payload is:
>
>     { "path-namespaces": [{
>         "prefix": "ns",
>         "namespace-uri": "http://example.com/"
>     }]}
>
> I then get a MANAGE-INVALIDPAYLOAD error:
>
>     Unexpected element: prefix (not in schema)
>
> Any idea what's wrong?
>
> Regards,
>
> --
> Florent Georges
> H2O Consulting
> http://h2o.consulting/
>
>
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
> --
> <http://developer.marklogic.com/mailman/listinfo/general>
> Florent Georges
> <http://developer.marklogic.com/mailman/listinfo/general>
> http://fgeorges.org/
> http://h2o.consulting/ - New website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170921/35270840/attachment.html 


More information about the General mailing list