Skip to content

Documentation for custom UrlMappings #59

@lguerin

Description

@lguerin

Documentation generated by the plugin for custom UrlMappings is not rendered correctly.
For example:
UrlMappings

"/api/custom/$bookId/$action.$format" {
    controller = "restCustom"
    constraints {
        bookId nullable: false, blank: false
    }
}

RestCustomController

@RestApiMethod(description="Add a book to the store", verb = RestApiVerb.POST)
@RestApiParams(params=[
    @RestApiParam(name="bookId", type="long", paramType = RestApiParamType.PATH, description = "The book id")
])
def add(Long bookId) {
    ...
}

The generated documentation:

  • does not replace '$action' dynamically ;
  • generates path as "rest custom".

I have submitted the following pull request to fix the issue: #58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions