Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Resource.representations #521

Open
nharraud opened this issue Oct 22, 2015 · 5 comments
Open

Document Resource.representations #521

nharraud opened this issue Oct 22, 2015 · 5 comments
Labels

Comments

@nharraud
Copy link
Contributor

After digging in fask-restful code I found Resource.representations which does exactly what I want, i.e: having different representations per resource. This is really a great feature but I couldn't find any reference to it in the documentation.
Is it because this is not officially supported and might be removed or is it just missing in the doc?

I am currently using Flask-RESTful (0.3.4) from Pypi and I searched this documentation: http://flask-restful-cn.readthedocs.org/en/latest/

@joshfriend
Copy link
Member

Whoops, thats not what you were talking about. Is this the undocumented feature?

@nharraud
Copy link
Contributor Author

@justanr
Copy link
Contributor

justanr commented Nov 14, 2015

That's documented a little further down that same page: http://flask-restful-cn.readthedocs.org/en/latest/extending.html#resource-method-decorators

@nharraud
Copy link
Contributor Author

@justanr Sorry I must have selected the wrong line. I meant the line just above:

representations = None

i.e: Resource.representations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants