I have set up "schemes", "host" and "basePath". URL and protocol are correct.
My spec looks like this:
swagger: '2.0'
schemes:
- https
host: demo.example.co
basePath: /myappexample/api/v1
502 Returns to me only when my parameters in body are correct and I expect to recieve 200 OK. When my parameters are incorrect (empty or missing) I receive expected responses with my web app's errors in response body.
Besides some other simple GET requests works fine. And when I paste proposed curl to my command line it works fine too.
When I use curl response looks like this:
HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Wed, 04 May 2016 12:27:34 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' https://setronica.atlassian.net https://gdata.youtube.com www.google-analytics.com https://www.googleapis.com https://www.youtube.com http://www.youtube.com; img-src 'self' data: https://www.gravatar.com https://setronica.atlassian.net https://www.paypalobjects.com www.google-analytics.com; object-src 'self' https://www.googleapis.com https://www.youtube.com www.google-analytics.com;
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Set-Cookie: JSESSIONID=6963E2C98E063E751820DA8A33EB1197; Path=/myappexample/; HttpOnly
{
"name" : "MyApp API",
"version" : "1.0"
}