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
Comments
I think this is what you were looking for: http://flask-restful.readthedocs.org/en/0.3.4/api.html#flask_restful.Api.representation |
Whoops, thats not what you were talking about. Is this the undocumented feature? |
No, this one is documented here: http://flask-restful-cn.readthedocs.org/en/latest/extending.html#response-formats. I'm talking about this one: https://github.com/flask-restful/flask-restful/blob/master/flask_restful/__init__.py#L565 |
That's documented a little further down that same page: http://flask-restful-cn.readthedocs.org/en/latest/extending.html#resource-method-decorators |
@justanr Sorry I must have selected the wrong line. I meant the line just above: flask-restful/flask_restful/__init__.py Line 564 in a191b28
i.e: |
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/
The text was updated successfully, but these errors were encountered: