Open shabda opened 12 years ago
Remove code duplication.
There is lot of code like this:
@api_method( path='/1/legal/privacy', subdomain='api', rate_limited=True, requires_authentication='no', response_formats=('json', 'xml'), http_method='GET') def method_name(): pass
This can be made succint by creating a wrapper for api_method with default arguments filled in and
api_method
method_name = api_method_wrapper(path="blah")
I am going to make wrapper with default arguments, I just wanted to know all the varieties of meta information that exists, so in this commit you see all the methods with all the information.
Remove code duplication.
There is lot of code like this:
@api_method( path='/1/legal/privacy', subdomain='api', rate_limited=True, requires_authentication='no', response_formats=('json', 'xml'), http_method='GET') def method_name(): pass
This can be made succint by creating a wrapper for
api_method
with default arguments filled in andmethod_name = api_method_wrapper(path="blah")