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

Multiple methods with different params are not displayed #110

Closed
fabiomaffioletti opened this Issue May 14, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@fabiomaffioletti
Owner

fabiomaffioletti commented May 14, 2015

This valid Spring mvc mapping will produce only one documentation object.

@RequestMapping(value = "/search", method = RequestMethod.GET, params = "title")
    @ApiMethod(description = "search one report by report title")
    public @ApiResponseObject List<Report> findByTitle(@ApiQueryParam(name = "title") @RequestParam String title) {
        return reportService.findByTitle(title);
    }

    @RequestMapping(value = "/search", method = RequestMethod.GET, params = "content")
    @ApiMethod(description = "search one report by report content")
    public @ApiResponseObject List<Report> findByContent(@ApiQueryParam(name = "content") @RequestParam String content) {
        return reportService.findByContent(content);
    }

It should produce both of them.

@fabiomaffioletti fabiomaffioletti added this to the 1.1.14 milestone May 14, 2015

fabiomaffioletti pushed a commit that referenced this issue May 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment