Re: [MarkLogic Dev General] Management API: 400 on creating a role with permissions

2017-11-28 Thread Florent Georges
json array names are singular eg. permissions should be > > "permission": >[ { "role-name": "reader", "capability": "read" }, > { "role-name": "writer", "capability": "read" }, > { &q

Re: [MarkLogic Dev General] Management API: 400 on creating a role with permissions

2017-11-27 Thread Jim Fuller
;role-name": "writer", "capability": "update" } ] From: general-boun...@developer.marklogic.com on behalf of Florent Georges Sent: 28 November 2017 00:15:18 To: MarkLogic Developer Discussion Subject: [MarkLogic Dev Gener

[MarkLogic Dev General] Management API: 400 on creating a role with permissions

2017-11-27 Thread Florent Georges
Hi, I send a POST to /manage/v2/roles with the following content: { "role-name": "writer", "description": "Test role 2.", "permissions": [ { "role-name": "reader", "capability": "read" }, { "role-name": "writer", "capability": "read" }, { "role-name": "wri

Re: [MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
er.marklogic.com> on behalf of Florent Georges < > li...@fgeorges.org> > *Sent:* 21 September 2017 13:07:11 > *To:* MarkLogic Developer Discussion > *Subject:* [MarkLogic Dev General] Management API: update path range index > > Hi, > > I want to update the path range ind

Re: [MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Jim Fuller
le I would expect range-path-index array to have 4 member. hth, J From: general-boun...@developer.marklogic.com on behalf of Florent Georges Sent: 21 September 2017 13:07:11 To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Management API: u

Re: [MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
False alert... This is a classic example of writing about the problem helped me solving it, right after I pressed the send button. For the record: from the error message, I thought the error was about the entire property (the whole array of indexes), but it was actually referring to one entry of

[MarkLogic Dev General] Management API: update path range index

2017-09-21 Thread Florent Georges
Hi, I want to update the path range indexes on a database via the Management API. So I send a PUT to /databases/xxx/properties with the following content: { "range-path-index": [{ "scalar-type": "date", "range-value-positions": false, "invalid-values": "reject",

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

2017-09-21 Thread Florent Georges
m < > general-boun...@developer.marklogic.com> on behalf of Florent Georges < > li...@fgeorges.org> > *Sent:* 21 September 2017 12:44:41 > *To:* MarkLogic Developer Discussion > *Subject:* [MarkLogic Dev General] Management API: JSON payload for "path > namespaces&qu

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

2017-09-21 Thread Jim Fuller
ral-boun...@developer.marklogic.com on behalf of Florent Georges 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 "

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

2017-09-21 Thread Florent Georges
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-IN

[MarkLogic Dev General] Management API - Create MIME type return 200

2017-08-03 Thread Florent Georges
Hi, The documentation for /manage/v2/mimetypes says it returns 200 on success (which as far as I can see is true). I would expect it to return 201 (Created), or actually even 202 as it triggers a restart. Like for other similar endpoints, e.g. /manage/v2/servers. Did I miss something? Regards,

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Yother, Michael B
Thanks for the info. I didn’t know. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Thursday, June 29, 2017 12:25 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Management API: remove

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
ailto:general-bounces@ > developer.marklogic.com] *On Behalf Of *Florent Georges > *Sent:* Thursday, June 29, 2017 11:51 AM > > *To:* MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic Dev General] Management API: remove modules db > from server, to use filesystem instead > >

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Yother, Michael B
...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Thursday, June 29, 2017 11:51 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead Until there is a good reason (and there doesn't seem to be one here),

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
r and/or cluster you are using. > > > > *From:* general-boun...@developer.marklogic.com [mailto:general-bounces@ > developer.marklogic.com] *On Behalf Of *Florent Georges > *Sent:* Thursday, June 29, 2017 11:23 AM > > *To:* MarkLogic Developer Discussion > *Subject:* Re: [Ma

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Yother, Michael B
er.marklogic.com<mailto:general-boun...@developer.marklogic.com>] On Behalf Of Florent Georges Sent: Thursday, June 29, 2017 7:49 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead Hi, Ah, right, t

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
y, June 29, 2017 7:49 AM > *To:* MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic Dev General] Management API: remove modules db > from server, to use filesystem instead > > > > Hi, > > > > Ah, right, the internal ID for "no database". Didn't

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Yother, Michael B
Subject: Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead Hi, Ah, right, the internal ID for "no database". Didn't think about that. Good enough for me (and yes, I confirm it does work) :-) Thank you, Jim! Regards, -- Flor

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
.org] > *Sent:* 29 June 2017 12:36 > *To:* MarkLogic Developer Discussion > *Subject:* [MarkLogic Dev General] Management API: remove modules db from > server, to use filesystem instead > > Hi, > > I have an application server, with a modules database configured. Using &g

Re: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Jim Fuller
Discussion Subject: [MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead Hi, I have an application server, with a modules database configured. Using the Management API, I'd like to "remove" it, so it will use the filesystem instea

[MarkLogic Dev General] Management API: remove modules db from server, to use filesystem instead

2017-06-29 Thread Florent Georges
Hi, I have an application server, with a modules database configured. Using the Management API, I'd like to "remove" it, so it will use the filesystem instead for the modules. So I send a PUT request with { "modules-database": null } to the server properties endpoint. But the response is 400 bad

Re: [MarkLogic Dev General] Management API - detach forest - doc

2017-02-22 Thread Jim Fuller
: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Management API - detach forest - doc Hi, I use the Management API to detach a forest, as documented in [1]. The doc says it returns 202 in case of success, but it actually returns 200. Bug in the doc? [1] https://docs.marklogic.com

[MarkLogic Dev General] Management API - detach forest - doc

2017-02-22 Thread Florent Georges
Hi, I use the Management API to detach a forest, as documented in [1]. The doc says it returns 202 in case of success, but it actually returns 200. Bug in the doc? [1] https://docs.marklogic.com/REST/POST/manage/v2/forests/[id-or-name] Regards, -- Florent Georges H2O Consulting http://h2o.co

[MarkLogic Dev General] Management API

2017-01-20 Thread Florent Georges
Hi, I send twice the same request to create a database: POST http://ml9ea4:8002/manage/v2/databases { 'database-name': 'xxx-content', 'range-element-index': [ { 'scalar-type': 'string', localname: 'xyz', 'range-value-positions': false, 'invalid-values': 'ignore',

Re: [MarkLogic Dev General] Management API - Is port bound?

2016-05-12 Thread Florent Georges
Andrew, Jim, I haven't responded yet, but I indeed solved my problem using the package view. It's good to see you are on it, Jim :-) Thank you both for your response! -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 6 May 2016 at 20:06, James Fuller wrote: > that is the ca

Re: [MarkLogic Dev General] Management API - Is port bound?

2016-05-06 Thread James Fuller
that is the case ... you would navigate each item in the HATEOS list and retrieve its properties. as Andrew mentioned, you can resort to using packages view. we envisage smart clients orchestrating behavior against manage rest api - this allows us to keep things simple and not bake behavior into

Re: [MarkLogic Dev General] Management API - Is port bound?

2016-05-06 Thread Andrew Jacobs
: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Management API - Is port bound? Hi, Using the Management API, if I want to know whether an appserver name is already used, I can use GET /manage/v2/servers, and look at nameref for each of them. But that list does not contain the

[MarkLogic Dev General] Management API - Is port bound?

2016-05-06 Thread Florent Georges
Hi, Using the Management API, if I want to know whether an appserver name is already used, I can use GET /manage/v2/servers, and look at nameref for each of them. But that list does not contain the port number for HTTP servers. So the only way to do the same for port numbers (namely, find whethe

Re: [MarkLogic Dev General] Management API: format of XML payload

2016-05-06 Thread Florent Georges
By the way, I've just noticed that the "XML root element" is properly documented for POST /manage/v2/servers [1]. It should probably be the same way for POST /manage/v2/databases [2]. [1] https://docs.marklogic.com/REST/POST/manage/v2/servers [2] https://docs.marklogic.com/REST/POST/manage/v2/dat

Re: [MarkLogic Dev General] Management API: format of XML payload

2016-05-06 Thread Florent Georges
Hi Jim, That's exactly what I was missing: "/properties" (I tried the same on the database endpoint itself, which was on no help in this case...) Thanks! -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 6 May 2016 at 10:47, James Fuller wrote: > as an example you can alway

Re: [MarkLogic Dev General] Management API: format of XML payload

2016-05-06 Thread James Fuller
and here is an example; curl -v -X POST --anyauth --user admin:admin --header "Content-Type:application/xml" -d@data/database.xml http://localhost:8002/manage/v2/databases?format=xml http://marklogic.com/manage";> test1 test1 J On Fri, May 6, 2016 at 10:47 AM, James Fuller wrote:

Re: [MarkLogic Dev General] Management API: format of XML payload

2016-05-06 Thread James Fuller
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 O

[MarkLogic Dev General] Management API: format of XML payload

2016-05-06 Thread Florent Georges
Hi, I try to create a DB with the Management API (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. Neit

Re: [MarkLogic Dev General] Management API - accessing "property" in 8.0-3

2015-07-17 Thread Christopher Hamlin
"general@developer.marklogic.com" > Subject: [MarkLogic Dev General] Management API - accessing "property" in > 8.0-3 > > Hi all, > > > > I’m trying to access some properties through the management API. If I try > something like the following against an 8.0-

Re: [MarkLogic Dev General] Management API - accessing "property" in 8.0-3

2015-07-17 Thread Dave Cassel
veloper.marklogic.com>> Date: Friday, July 17, 2015 at 11:20 AM To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" mailto:general@developer.marklogic.com>> Subject: [MarkLogic Dev General] Management API - accessing "property" in 8.0-3

[MarkLogic Dev General] Management API - accessing "property" in 8.0-3

2015-07-17 Thread Anne Taylor
Hi all, I'm trying to access some properties through the management API. If I try something like the following against an 8.0-2 server it works: http://servername:8002/manage/LATEST/forests/Triggers?view=counts&property=document-count but against three different 8.0-3 instances it fails with t