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

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

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] 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 
<geert.jos...@marklogic.com<mailto:geert.jos...@marklogic.com>> 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: 
<general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>>
 on behalf of akshay gupta 
<guptaakshay3...@yahoo.com<mailto:guptaakshay3...@yahoo.com>>
Reply-To: akshay gupta 
<guptaakshay3...@yahoo.com<mailto:guptaakshay3...@yahoo.com>>, MarkLogic 
Developer Discussion 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Date: Friday, May 27, 2016 at 12:23 PM
To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
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
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to