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

fabiomaffioletti opened this issue Dec 2, 2014 · 0 comments

Api param at method level #40

fabiomaffioletti opened this issue Dec 2, 2014 · 0 comments


Copy link

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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant