From dfe26c3caa2db18a708d9352e8ad44073a923c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mijajlovi=C4=87?= Date: Wed, 15 Jun 2016 21:02:12 +0200 Subject: [PATCH 1/5] Attachment upload limit --- src/Jira/Api.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index cc7dd40..9082c5b 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -197,6 +197,16 @@ public function editIssue($issue_key, array $params) return $this->api(self::REQUEST_PUT, sprintf('/rest/api/2/issue/%s', $issue_key), $params); } + /** + * Gets attachment upload limit. + * + * @return array + */ + public function getAttachmentUploadLimit() + { + return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta', array()); + } + /** * Gets attachment. * From 70137dc6687f9dd660f5c809c759811b9470a44e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mijajlovi=C4=87?= Date: Wed, 15 Jun 2016 21:24:38 +0200 Subject: [PATCH 2/5] Method name change --- src/Jira/Api.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index 9082c5b..7fdb3f3 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -202,7 +202,6 @@ public function editIssue($issue_key, array $params) * * @return array */ - public function getAttachmentUploadLimit() { return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta', array()); } From 8fbf786e4b4894e40530aef38aecec7636b4a238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mijajlovi=C4=87?= Date: Wed, 15 Jun 2016 21:26:33 +0200 Subject: [PATCH 3/5] getAttachmentsLimit changed to getAttachmentsMeta --- src/Jira/Api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index 7fdb3f3..b2fbddf 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -202,6 +202,7 @@ public function editIssue($issue_key, array $params) * * @return array */ + public function getAttachmentsMeta() { return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta', array()); } From eb4dac52f9f6bd879c315c6fe58396a6892100ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mijajlovi=C4=87?= Date: Wed, 15 Jun 2016 21:41:19 +0200 Subject: [PATCH 4/5] getAttachmentsMeta name change and documentation update --- src/Jira/Api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index b2fbddf..b359a25 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -198,11 +198,12 @@ public function editIssue($issue_key, array $params) } /** - * Gets attachment upload limit. + * Gets attachments meta information. * * @return array + * @since 2.0.0 */ - public function getAttachmentsMeta() + public function getAttachmentsMetaInformation() { return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta', array()); } From 231f29b160dcc706cab5beceead35d573b84ab7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mijajlovi=C4=87?= Date: Wed, 15 Jun 2016 21:48:51 +0200 Subject: [PATCH 5/5] Remove empty array as third parameter due it is default value --- src/Jira/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index b359a25..efbc39e 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -205,7 +205,7 @@ public function editIssue($issue_key, array $params) */ public function getAttachmentsMetaInformation() { - return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta', array()); + return $this->api(self::REQUEST_GET, '/rest/api/2/attachment/meta'); } /**