Hi All,I have been struggling with a basic authentication error and I know it 
is something simple. I am using Marklogic 8 on Win8 and I am trying to create a 
REST API instance using Curl CLI. The command that I am using is curl -s -X 
POST --digest --user admin:admin -d"{\"rest-api\" : 
{\"name\":\"5minguide\",\"database\":\"5minguide\",\"port\":8010}}" -H 
"Content-type: application/json" "http://localhost:8002/v1/rest-apis"I am using 
admin:admin to authenticate to the http://localhost:8001 (admin console) but 
everytime I run the above command I get the following error
<html xmlns="http://www.w3.org/1999/xhtml";>  <head>    <title>401 
Unauthorized</title>    <meta name="robots" content="noindex,nofollow"/>  
</head>  <body>    <h1>401 Unauthorized</h1>  </body></html>
can anyone confirm if I am user the right user? or role required to create REST 
API instance?Thanks in advance.regards,Puneet                                   
  
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to