{
"error": "no response from server"
}
Is that a CORS problem ? And if I can have my own swagger UI, so I do not have to deal with it, since it is not cross domain anymore.
Thanks,
Jack
$curl -I "http://localhost/api/1.0/swagger.json"
HTTP/1.1 200 OK
Date: Tue, 09 Feb 2016 18:33:00 GMT
Server: Jetty(7.4.5.v20110725)
Pragma: no-cache
Cache-Control: no-cache
Expires: 0
Content-Type: application/json
Access-Control-Allow-Origin: * //-----> does it mean the server supports cross domain api call already ?
Access-Control-Allow-Methods: OPTIONS,GET,POST,PUT,DELETE
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control
Access-Control-Allow-Origin: * //-----> does it mean the server supports cross domain api call already ? I do not know how to enable CORS.Putting sth in the header of request?
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
$ curl -I "http://localhost/api/1.0/notice"
HTTP/1.1 401 Unauthorized
Date: Tue, 09 Feb 2016 19:08:15 GMT
Server: Jetty(7.4.5.v20110725)
Pragma: no-cache
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 1385
Content-Type: text/html;charset=ISO-8859-1
Set-Cookie: crowd.token_key=null;Version=1;Comment=;Path=/;Max-Age=0
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: OPTIONS,GET,POST,PUT,DELETE
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control
$ curl -I "http://localhost/api/1.0/logs"
HTTP/1.1 405 Method Not Allowed
Date: Tue, 09 Feb 2016 19:08:19 GMT
Server: Jetty(7.4.5.v20110725)
Pragma: no-cache
Cache-Control: must-revalidate,no-cache,no-store
Allow: OPTIONS
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 1395
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: OPTIONS,GET,POST,PUT,DELETE
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control
curl -X GET --header 'Accept: application/json' 'http://companydomain-route to localhost/api/1.0/logs/:idididididididid?startDate=2015-10-01&endDate=2015-12-01'
http://company.domain route to localhost/api/1.0/logs/:idididididididid?startDate=2015-10-01&endDate=2015-12-01
no content
0