loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Improve MappingRules to match dynamic actions of custom Rest Controllers #58

Open lguerin opened 9 years ago

lguerin commented 9 years ago

I like your plugin, but I have a lots of use cases where I have to create some REST controllers with custom UrlMappings settings. Basically, I declare UrlMappings manually to match my controller actions with constraints and (sometime) grouping features. In that case, the actual BuildPathMap mechanism is not sufficient to match my custom controller paths and replace the target action dynamically ; and so the generated documentation is not set correctly. You can have a look at a simple example here : https://github.com/lguerin/Rest-api-doc-example/commit/97e414f150a510178cca926991948f48d2159d81 This pull-request suggest a solution to fix that cases. Thx.