Hello Team,

We tried creating the Rest API Instance however we are unable to perform any 
CRUD activities .

Could you please let us know how can we perform CRUD operations by connecting 
to REST end point using JavaScript/AJAX without using curl.


Thanks

Udaya

________________________________
From: [email protected] 
<[email protected]> on behalf of Indrajeet Verma 
<[email protected]>
Sent: Friday, July 15, 2016 12:49 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] #CGP#RE: Need Technical Support


** This mail has been sent from an external source **

Hi Udaya,

As per my understanding you should always use latest version of ML if you are 
installing from scratch. The latest version of ML (MarkLogic-8.0-5.4) is 
available here https://developer.marklogic.com/products.
MarkLogic 8 — MarkLogic Developer 
Community<https://developer.marklogic.com/products>
developer.marklogic.com
MarkLogic is the only Enterprise NoSQL Database ... Daniel, I'm not sure I 
understand your question, since you've specified a Linux version.



Did you follow all the installation steps of MarkLogic those are mentioned here 
https://docs.marklogic.com/guide/installation/procedures#id_28962? (mainly 
configuration and security set up).

If you are able to access MarkLogic using http://localhost:8001 and 
http://localhost:8000/qconsole then it means your installation completed 
successfully.

Now you may try below curl command to create rest instance:

curl --anyauth --user admin:admin -X POST -d@"config/rest-instance.xml" -i -H 
"Content-type:application/xml" http://localhost:8002/v1/rest-apis

Make sure rest-instance.xml has been created under <<current directory>>/config 
in your system from where you are running command.

rest-instance.xml

<rest-api xmlns="http://marklogic.com/rest-api";>
  <name>test-rest</name>
  <group>Default</group>
  <database>test-rest-db</database>
  <modules-database>test-rest-mods</modules-database>
  <port>8045</port>
</rest-api>

Now you may open http://localhost:8001 and see whether rest instance and db has 
been created successfully. You should check database and attached forest as 
well.

You may try another rest end point to load content:

curl --anyauth --user admin:admin -X PUT -T docs-rest/song1.xml 
"http://localhost:8045/v1/documents?uri=/plays/play1.xml&format=xml&collection=plays";

For more information regarding setting up rest instance, please refer 
https://developer.marklogic.com/learn/rest/setup

You may attend some training courses that MarkLogic provides: 
http://mlu.marklogic.com/ondemand/index.xqy?q=Version%3A%22MarkLogic%208%22

Hope that helps!

Regards,
Indy



On Fri, Jul 15, 2016 at 12:24 PM, Khan, Zishan 
<[email protected]<mailto:[email protected]>> wrote:
++below

From: Khan, Zishan
Sent: Friday, July 15, 2016 12:23 PM
To: [email protected]<mailto:[email protected]>
Subject: RE: Need Technical Support

Hi udaya,

Did you use the curl command properly ?. check it once again it should work if 
coded properly.

Regards,
Zishan

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of 
[email protected]<mailto:[email protected]>
Sent: Friday, July 15, 2016 12:16 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [MarkLogic Dev General] Need Technical Support



Hello Team,

We are new to MarkLogic DB and we are analysing it to use in our project which 
is programmed in scala .We have downloaded the MarkLogic 7 trial version but 
are unable to create a rest API instance.

We tried to insert a document but we are unable to come forward. Can you please 
assist us technically to get started.


Thanks
Udaya

________________________________
From: 
[email protected]<mailto:[email protected]>
 
<[email protected]<mailto:[email protected]>>
 on behalf of 
[email protected]<mailto:[email protected]>
 
<[email protected]<mailto:[email protected]>>
Sent: Friday, July 15, 2016 12:12 PM
To: Udaya Laxmi Chillara (MFG & Tech)
Subject: Welcome to the "General" mailing list

** This mail has been sent from an external source **

Welcome to the 
[email protected]<mailto:[email protected]> mailing 
list!

To post to this list, send your email to:

  [email protected]<mailto:[email protected]>

General information about the mailing list is at:

  http://developer.marklogic.com/mailman/listinfo/general
General Info Page - 
developer.marklogic.com<http://developer.marklogic.com/mailman/listinfo/general>
developer.marklogic.com<http://developer.marklogic.com>
This is a general mailing list for all things MarkLogic related. To see the 
collection of prior postings to the list, visit the General Archives.




If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  
http://developer.marklogic.com/mailman/options/general/udaya.chillara%40wipro.com


You can also make such adjustments via email by sending a message to:

  
[email protected]<mailto:[email protected]>

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe.  It is:

  marklogic

Normally, Mailman will remind you of your 
developer.marklogic.com<http://developer.marklogic.com>
mailing list passwords once every month, although you can disable this
if you prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com<http://www.wipro.com>

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.

_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to