Here is a link to the doc for creating a REST instance:

http://docs.marklogic.com/guide/rest-dev/service#id_12021

From: [email protected] 
[mailto:[email protected]] On Behalf Of Ram shaw
Sent: Friday, May 27, 2016 4:29 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Regarading REST API

Hi Akshay,

              In order to communicate with a MarkLogic database through the 
REST API, a REST API instance for the database needs to first exist.
To create a REST API instance, a POST request can be sent to the /rest-apis 
service on port 8002, with REST API instance configuration information in XML 
or JSON.
here is the config file -

{
  "rest-api": {
    "name": "8060-patents",
    "database": "patents",
    "port": "8060",
    "forests-per-host": 1
  }
}

curl --anyauth --user ram:pass123 -X POST -d@"location-of-file" -i -H 
"Content-type: application/json" http://localhost:8002/v1/rest-apis

Thanks,
Ram


On Fri, May 27, 2016 at 4:14 PM, Geert Josten 
<[email protected]<mailto:[email protected]>> wrote:
Hi Akshay,

These answers weren’t of any help?

http://stackoverflow.com/questions/37469976/from-where-rest-api-is-downloaded?utm_source=twitterfeed&utm_medium=twitter

Cheers,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of akshay gupta 
<[email protected]<mailto:[email protected]>>
Reply-To: akshay gupta 
<[email protected]<mailto:[email protected]>>, MarkLogic 
Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Friday, May 27, 2016 at 12:23 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] Regarading REST API

Hi

I want to install REST API in my local machine.In my machine Mrklogic is server 
is install.Please tell me how and where I can install REST API console.

Regards
Akshay Gupta

_______________________________________________
General mailing list
[email protected]<mailto:[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

Reply via email to