Re: ui nevers return when "Try it out" for OPTIONS method

6 views
Skip to first unread message

Ron Ratovsky

unread,
Jul 5, 2015, 3:23:22 PM7/5/15
to swagger-sw...@googlegroups.com
You actually expose an API via OPTIONS?

On Sat, Jun 27, 2015 at 11:58 PM, Rick Sun <rick...@gmail.com> wrote:
Using this simple spec for "OPTIONS" method,
{
        tags: ["/api"],
        summary: "summary.",
        description: "Description."
}
When click "Try it out", swagger-ui never returns (the dots at the bottom right are always running).

This curl command works fine for my server:

curl -i -u xx:xx http://localhost:8080/api -X OPTIONS

Server returns this without any body:

HTTP/1.1 200 OK

Server: 

Allow: DELETE, GET, HEAD, PATCH, POST, PUT

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

Content-Length: 0

Content-Type: text/html

Pragma: no-cache


Is there any way to get around this?



--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
Reply all
Reply to author
Forward
0 new messages