{"action":"created","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/events","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/678","id":312946081,"number":678,"title":"Swagger route direct with 2.4.0","user":{"login":"RomainWilbert","id":26027494,"avatar_url":"https://avatars0.githubusercontent.com/u/26027494?v=4","gravatar_id":"","url":"https://api.github.com/users/RomainWilbert","html_url":"https://github.com/RomainWilbert","followers_url":"https://api.github.com/users/RomainWilbert/followers","following_url":"https://api.github.com/users/RomainWilbert/following{/other_user}","gists_url":"https://api.github.com/users/RomainWilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/RomainWilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomainWilbert/subscriptions","organizations_url":"https://api.github.com/users/RomainWilbert/orgs","repos_url":"https://api.github.com/users/RomainWilbert/repos","events_url":"https://api.github.com/users/RomainWilbert/events{/privacy}","received_events_url":"https://api.github.com/users/RomainWilbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-04-10T14:22:50Z","updated_at":"2018-05-08T20:08:10Z","closed_at":null,"author_association":"NONE","body":"Hi ! \r\nSince 2.4.0 upgrade, When I access Swagger route (xxx/docs/rest), I am redirected to docs/docs/rest.\r\nIf I add a \"/\" at the end (xxx/docs/rest/) then it works fine. \r\nIs this normal ?\r\nHere is my config in Startup : \r\n`            // Enable middleware to serve generated Swagger as a JSON endpoint.\r\n            app.UseSwagger(c => { c.RouteTemplate = \"docs/rest/{documentName}/swagger.json\"; });\r\n\r\n            // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), specifying the Swagger JSON endpoint.\r\n            app.UseSwaggerUI(c =>\r\n            {\r\n                c.SwaggerEndpoint(\"/docs/rest/v1/swagger.json\", \"v1\");\r\n                c.DocumentTitle = ApiName;\r\n                c.RoutePrefix = \"docs/rest\";\r\n            });`\r\n"},"comment":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/comments/387526453","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/678#issuecomment-387526453","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678","id":387526453,"user":{"login":"virzak","id":6209775,"avatar_url":"https://avatars0.githubusercontent.com/u/6209775?v=4","gravatar_id":"","url":"https://api.github.com/users/virzak","html_url":"https://github.com/virzak","followers_url":"https://api.github.com/users/virzak/followers","following_url":"https://api.github.com/users/virzak/following{/other_user}","gists_url":"https://api.github.com/users/virzak/gists{/gist_id}","starred_url":"https://api.github.com/users/virzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virzak/subscriptions","organizations_url":"https://api.github.com/users/virzak/orgs","repos_url":"https://api.github.com/users/virzak/repos","events_url":"https://api.github.com/users/virzak/events{/privacy}","received_events_url":"https://api.github.com/users/virzak/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T20:08:10Z","updated_at":"2018-05-08T20:08:10Z","author_association":"NONE","body":"The bug is still there and the output is exactly the same as before.\r\n\r\nAs a side note, why is the preview version number is 2.4.0 and not 2.4.1 or 2.5.0? When my package source is set to \"All\", it wants to \"upgrade\" to 2.4.0 even though that's an older version.\r\n\r\n![image](https://user-images.githubusercontent.com/6209775/39780320-f09b0b70-52d9-11e8-8cfa-6e585519f117.png)\r\n"}}
{"actor":{"display_login":"virzak"}}