The update method of the pecan itemcontroller was not returning
the response encapsulated correctly in a dictionary with the resource
type identifier. This was discovered via the standard API tests.
Change-Id: Ie2217972c75b14a0867477f26f434055b33a9ae6
request.prepared_data)
# TODO(kevinbenton): bulk?
updater = getattr(request.plugin, 'update_%s' % request.resource_type)
- return updater(request.context, self.item, request.prepared_data)
+ return {request.resource_type: updater(
+ request.context, self.item, request.prepared_data)}
@when(index, method='DELETE')
def delete(self):