Merge pull request #2 from DataShades/rating-package-get-docstring

Add docstring for rating_package_get
This commit is contained in:
Jari Voutilainen 2016-12-01 08:54:36 +02:00 committed by GitHub
commit 94e3d383a6
1 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,16 @@ def rating_package_create(context, data_dict):
@toolkit.side_effect_free
def rating_package_get(context, data_dict):
'''
Get the rating and count of ratings for a package.
Returns a dictionary containing rating and ratings counts.
:param package_id: the id of the package
:type package_id: string
:rtype: dictionary
'''
package_id = data_dict.get('package_id')
error = None