1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a924f00f3158/ Changeset: a924f00f3158 User: greg Date: 2014-05-01 22:44:44 Summary: Tweaks to the recent Tool Shed API enhancements, making them more RESTful. Affected #: 5 files diff -r f337aefda5c6c709760c51019df777c083b036bb -r a924f00f31589ab8568a7e9c3b1f4f27a5916d42 lib/galaxy/webapps/tool_shed/api/categories.py --- a/lib/galaxy/webapps/tool_shed/api/categories.py +++ b/lib/galaxy/webapps/tool_shed/api/categories.py @@ -17,9 +17,9 @@ return value_mapper @web.expose_api - def create_category( self, trans, payload, **kwd ): + def create( self, trans, payload, **kwd ): """ - POST /api/categories/create_category + POST /api/categories Returns a dictionary of information about the created category. : param key: the current Galaxy admin user's API key diff -r f337aefda5c6c709760c51019df777c083b036bb -r a924f00f31589ab8568a7e9c3b1f4f27a5916d42 lib/galaxy/webapps/tool_shed/api/users.py --- a/lib/galaxy/webapps/tool_shed/api/users.py +++ b/lib/galaxy/webapps/tool_shed/api/users.py @@ -16,9 +16,9 @@ """RESTful controller for interactions with users in the Tool Shed.""" @web.expose_api - def create_user( self, trans, payload, **kwd ): + def create( self, trans, payload, **kwd ): """ - POST /api/users/create_user + POST /api/users Returns a dictionary of information about the created user. : param key: the current Galaxy admin user's API key diff -r f337aefda5c6c709760c51019df777c083b036bb -r a924f00f31589ab8568a7e9c3b1f4f27a5916d42 lib/galaxy/webapps/tool_shed/buildapp.py --- a/lib/galaxy/webapps/tool_shed/buildapp.py +++ b/lib/galaxy/webapps/tool_shed/buildapp.py @@ -85,7 +85,6 @@ controller='categories', name_prefix='category_', path_prefix='/api', - new={ 'create_category' : 'POST' }, parent_resources=dict( member_name='category', collection_name='categories' ) ) webapp.mapper.resource( 'repository', 'repositories', @@ -112,7 +111,6 @@ controller='users', name_prefix='user_', path_prefix='/api', - new={ 'create_user' : 'POST' }, parent_resources=dict( member_name='user', collection_name='users' ) ) webapp.finalize_config() # Wrap the webapp in some useful middleware diff -r f337aefda5c6c709760c51019df777c083b036bb -r a924f00f31589ab8568a7e9c3b1f4f27a5916d42 lib/tool_shed/scripts/api/create_categories.py --- a/lib/tool_shed/scripts/api/create_categories.py +++ b/lib/tool_shed/scripts/api/create_categories.py @@ -39,7 +39,7 @@ if name is not None and description is not None: data = dict( name=name, description=description ) - url = '%s/api/categories/new/create_category' % to_tool_shed + url = '%s/api/categories' % to_tool_shed try: response = submit( url, data, api_key ) except Exception, e: diff -r f337aefda5c6c709760c51019df777c083b036bb -r a924f00f31589ab8568a7e9c3b1f4f27a5916d42 lib/tool_shed/scripts/api/create_users.py --- a/lib/tool_shed/scripts/api/create_users.py +++ b/lib/tool_shed/scripts/api/create_users.py @@ -42,7 +42,7 @@ data = dict( email=email, password=password, username=username ) - url = '%s/api/users/new/create_user' % to_tool_shed + url = '%s/api/users' % to_tool_shed try: response = submit( url, data, api_key ) except Exception, e: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.