“/api/v2/search” is not the correct URI. Can you try  with 
“api/atlas/v2/search”?

Madhan



On 7/17/17, 11:51 AM, "Jean Georges Perrin" <j...@jgp.net> wrote:

    Hi,
    
    I installed and run Atlas on my Mac. Everything seems to be working fine in 
the UI, but I cannot get the API to work... I am sure it is really a small 
thing, but...
    
    curl --user admin:admin -v http://localhost:21000/api/v2/search/basic 
<http://localhost:21000/api/v2/search/basic>
    
    returns:
    
    *   Trying ::1...
    * TCP_NODELAY set
    * Connection failed
    * connect to ::1 port 21000 failed: Connection refused
    *   Trying 127.0.0.1...
    * TCP_NODELAY set
    * Connected to localhost (127.0.0.1) port 21000 (#0)
    * Server auth using Basic with user 'admin'
    > GET /api/v2/search/basic HTTP/1.1
    > Host: localhost:21000
    > Authorization: Basic YWRtaW46YWRtaW4=
    > User-Agent: curl/7.54.1
    > Accept: */*
    >
    < HTTP/1.1 404 Not Found
    < Date: Mon, 17 Jul 2017 18:42:49 GMT
    < Set-Cookie: ATLASSESSIONID=14z2v5j9416lcibimeswa5it;Path=/;HttpOnly
    < X-Frame-Options: DENY
    < Content-Type: text/html; charset=ISO-8859-1
    < Cache-Control: must-revalidate,no-cache,no-store
    < Content-Length: 303
    < Server: Jetty(9.2.12.v20150709)
    <
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Error 404 Not Found</title>
    </head>
    <body><h2>HTTP ERROR 404</h2>
    <p>Problem accessing /api/v2/search/basic. Reason:
    <pre>    Not Found</pre></p><hr><i><small>Powered by 
Jetty://</small></i><hr/>
    
    </body>
    </html>
    * Connection #0 to host localhost left intact
    
    Thanks!
    
    jg
    
    
    


Reply via email to