def deleteImage(request): # required parameters imageKey = request.DELETE.get('id', None) if not imageKey: raise Errors.NO_IMAGE_KEY fields = Util.getDelimitedList(request.GET, 'fields') deleteAPI = DeleteAPI(request.user, fields) return deleteAPI.deleteImage(imageKey)
def deleteTagGroup(request): tagGroupKey = request.DELETE.get('id', None) if not tagGroupKey: raise Errors.MISSING_PARAMETER.setCustom('id') # get optional parameter fields = Util.getDelimitedList(request.DELETE, 'fields') deleteAPI = DeleteAPI(request.user, fields) return deleteAPI.deleteTagGroup(tagGroupKey)
def deleteTagGroup(request): tagGroupKey = request.DELETE.get("id", None) if not tagGroupKey: raise Errors.MISSING_PARAMETER.setCustom("id") # get optional parameter fields = Util.getDelimitedList(request.DELETE, "fields") deleteAPI = DeleteAPI(request.user, fields) return deleteAPI.deleteTagGroup(tagGroupKey)
def deleteTag(request): geneLinkKey = request.DELETE.get('id', None) if not geneLinkKey: raise Errors.MISSING_PARAMETER.setCustom('id') # get optional parameter fields = Util.getDelimitedList(request.DELETE, 'fields') deleteAPI = DeleteAPI(request.user, fields) return deleteAPI.deleteGeneLink(geneLinkKey)