Skip to content

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

Closed

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

Activity

  1. 0xRoch commented on Nov 4, 2014

    @0xRoch

    👍

  2. added this to the v1.3.12 milestone on Dec 20, 2014
  3. fehguy commented on Dec 21, 2014

    @fehguy
    Contributor

    confirmed this was addressed in 5d67884

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

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