Tool: PEP8 Style Checker Processed Files: rbtools/api/resource.py Tool: Pyflakes Processed Files: rbtools/api/resource.py
Add the resource_mimetype decorator for client API resource classes
Review Request #7003 - Created March 3, 2015 and submitted
resource_mimetypedecorator is added to reduce the repetition in
the client API resources code. Each client resource needs to specify a
mimetype to the resource map so that we can match responses to resource
classes. This was traditionally done by just updating the resource map
by hand. The new decorator takes a mimetype and updates the resource
map with the decorated class.
Ran unit tests.
Posted this review request with
Able to run