From e10e43968e2a4a8ef3ef84fd7ff7e741af5e40b0 Mon Sep 17 00:00:00 2001 From: NavaL Date: Thu, 7 Jan 2016 15:39:34 +0100 Subject: renamed attachment_id attribute to ident on POST response, to conform with the GET attachment API Issue #548 --- service/pixelated/resources/attachments_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/resources/attachments_resource.py') diff --git a/service/pixelated/resources/attachments_resource.py b/service/pixelated/resources/attachments_resource.py index e7bb6bdb..51fcdd3e 100644 --- a/service/pixelated/resources/attachments_resource.py +++ b/service/pixelated/resources/attachments_resource.py @@ -87,7 +87,7 @@ class AttachmentsResource(Resource): def send_location(attachment_id): request.headers['Location'] = '/%s/%s' % (self.BASE_URL, attachment_id) - response_json = {"attachment_id": attachment_id, + response_json = {"ident": attachment_id, "content-type": _file.type, "filename": _file.filename, "filesize": len(_file.value)} -- cgit v1.2.3