Create method in libraries API should return the created library not an array containing only the created library. This was confirmed by dannon in the comments on issue 802.

This commit is contained in:
John Chilton
2012-08-22 16:57:04 -05:00
parent f7ad41d4e6
commit f9b2eb2438
+1 -1
View File
@@ -98,7 +98,7 @@ class LibrariesController( BaseAPIController ):
rval['url'] = url_for( 'library', id=encoded_id )
rval['name'] = name
rval['id'] = encoded_id
return [ rval ]
return rval
@web.expose_api
def delete( self, trans, id, **kwd ):