Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

servant-swagger-ui-core breaks routing when it's not the last matching route #60

Open
domenkozar opened this issue Feb 7, 2019 · 0 comments

Comments

@domenkozar
Copy link
Contributor

If there's a POST under the same route as swagger and it comes after swagger UI, it will result into something like:

$ curl -X POST http://localhost:8090/api/v1/fastspring
Only GET or HEAD is supported

Example:

      :<|> "api" :> SwaggerSchemaUI "v1" "swagger.json"
      :<|> "api" :> "v1" :> "fastspring" :> Post '[JSON] NoContent 

Putting SwaggerSchemaUI last fixes the issue.

@domenkozar domenkozar changed the title servant-swagger breaks routing when it's not the last matching route servant-swagger-ui-core breaks routing when it's not the last matching route Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant