Permalink
Browse files

Merge pull request #13 from MaximeGaudin/notes

This commit adds the resource's docstring to the 'implementation note' section
  • Loading branch information...
2 parents 9fe92f0 + ab68549 commit d153f779b8898fe7fd449e5edaded4343adcd69f @minism committed Jan 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 tastypie_swagger/mapping.py
@@ -96,6 +96,7 @@ def build_detail_operation(self, method='get'):
'parameters': [self.build_parameter(paramType='path', name='id', dataType='int', description='ID of resource')],
'responseClass': 'Object',
'nickname': '%s-detail' % self.resource_name,
+ 'notes': self.resource.__doc__,
}
return operation
@@ -105,6 +106,7 @@ def build_list_operation(self, method='get'):
'parameters': self.build_parameters_from_filters(),
'responseClass': 'List',
'nickname': '%s-list' % self.resource_name,
+ 'notes': self.resource.__doc__,
}
def build_detail_api(self):

0 comments on commit d153f77

Please sign in to comment.