django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Add an option to filter api urls in DocumentGenerator

Open swistakm opened this issue 12 years ago • 1 comments

Maybe using django url namespace? It could be parameter of .get_docs method. It would be nice feature to have separate docs for different versions of API and I think that using different namespaces for different API versions is good way to achieve this.

There could be also other kinds of filters e.g. regex.

swistakm avatar Jan 30 '13 11:01 swistakm

This is a good idea. Right now, it's possible to specifiy which URL patterns to document by providing them in the constructor when instantiating the DocumentationGenerator class. I will have a look at your pull request in the next few days. Thanks for your help and interest!

marcgibbons avatar Jan 31 '13 04:01 marcgibbons