loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Support url without extension #17

Closed anthony-foulfoin closed 10 years ago

anthony-foulfoin commented 10 years ago

Hi,

Given the following entry in the UrlMappings :

"/v1/healthcheck"(controller: 'healthcheck', action: 'index', namespace: 'v1')

restapidoc computes the following path :

/healthcheck/index.json

While the correct path is

/healthcheck/index

restapidoc always suffix the url with an extension. It would be nice to be able to disable this feature. Setting the property grails.plugins.restapidoc.defaultFormat to null give me a NPE.

anthony-foulfoin commented 10 years ago

the pull request : https://github.com/loic911/restapidoc/pull/19

loic911 commented 10 years ago

thanks, it will be available in 0.3