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

Question: using swagger-akka with nested path #74

Open
mhdtahawi opened this issue May 1, 2018 · 1 comment
Open

Question: using swagger-akka with nested path #74

mhdtahawi opened this issue May 1, 2018 · 1 comment

Comments

@mhdtahawi
Copy link

Hello,
If I understand correctly, each path segments needs to be in a variable and we will annotate the variable with swagger.

  • Does that mean that I have to seperate my nested routes?
  • if I have a route containing several HTTP methods, do I have to seperate each method in its own variable to annotate it?

Thank you

@pjfanning
Copy link
Collaborator

swagger-akka-http is a very thin wrapper on top of swagger-jaxrs.
The swagger API is discovered using Java annotations on the Java methods (and Scala functions are seen as Java methods).
That is why the current swagger-akka-http code requires the routes to be decomposed into constituent pieces.

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

2 participants