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

play2 should infer httpMethod=XX in @ApiOperation from routes #643

Closed
sheavner opened this issue Aug 7, 2014 · 2 comments
Closed

play2 should infer httpMethod=XX in @ApiOperation from routes #643

sheavner opened this issue Aug 7, 2014 · 2 comments
Labels
Milestone

Comments

@sheavner
Copy link

sheavner commented Aug 7, 2014

Is there a reason the httpMethod for an @ApiOperation can't be automatically determined from the play2 routes table? It already gets the URL from the routes table.

Ideally it would also automatically extract the path param name for @ApiParam and wouldn't require an extra @PathParam annotation.

public static Result test(
@ApiParam(value = "The ID", required = true, defaultValue= "1") @PathParam("id") String id)
)

@0xRoch
Copy link

0xRoch commented Nov 4, 2014

👍

@fehguy fehguy added this to the v1.3.12 milestone Dec 20, 2014
@fehguy
Copy link
Contributor

fehguy commented Dec 21, 2014

confirmed this was addressed in 5d67884

@fehguy fehguy closed this as completed Dec 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants