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

Api param at method level #40

Closed
fabiomaffioletti opened this issue Dec 2, 2014 · 0 comments
Closed

Api param at method level #40

fabiomaffioletti opened this issue Dec 2, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@fabiomaffioletti
Copy link
Owner

@fabiomaffioletti fabiomaffioletti commented Dec 2, 2014

Create a new annotation @ApiParams to allow specifying parameters on methods declaration instead of inside method signature. This is to let old style servlets document parameters in this way:

@ApiMethod(path = "/methodParams", verb = ApiVerb.GET, description = "a-test-method")
@ApiParams(apiparams = {
    @ApiParam(name = "name", paramType = ApiParamType.PATH, clazz = String.class),
    @ApiParam(name = "value", paramType = ApiParamType.PATH, clazz = String.class)
})
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
...
}
@fabiomaffioletti fabiomaffioletti self-assigned this Dec 2, 2014
@fabiomaffioletti fabiomaffioletti added this to the 1.0.6 milestone Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.