Skip to content

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

@sheavner

Description

@sheavner

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)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions