as an example you can always view a pre-existing database via manage rest api
http://localhost:8002/manage/v2/databases/Documents/properties?format=xml and emulate. Otherwise the schema manage-database-properties.xsd is the canonical definition and can validate your payloads. hth, J On Fri, May 6, 2016 at 10:31 AM, Florent Georges <[email protected]> wrote: > Hi, > > I try to create a DB with the Management API (POST /manage/v2/databases > <https://docs.marklogic.com/REST/POST/manage/v2/databases>). I can do > it with a JSON payload: > > { "database-name": "my-db", "forest": [ "my-db-001" ] } > > But I cannot find any example of the equivalent XML format. Neither > in the doc page above, nor in the Scripting Admin Tasks guide. All > examples use JSON. I guess all I need is the name of the root element > and the namespace to use, all element names are on the doc page. > > Any idea? > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
