encode / django-rest-framework

Web APIs for Django. 🎸
https://www.django-rest-framework.org
Other
27.83k stars 6.76k forks source link

@link as a filter controller rather then to get detail about an object #1279

Closed debuggerpk closed 10 years ago

debuggerpk commented 10 years ago

for example ... in my api

/api/invoice ..

i want to use to two links

/api/invoice/sales/ /api/invoice/purchase

i should be able to do it using @link decorator .. shouldn't i?

//ysf

tomchristie commented 10 years ago

This functionality is currently merged into the 2.4 branch and will be available with the 2.4.0 release.

https://github.com/tomchristie/django-rest-framework/pull/1047