]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
API: POST/PUT Link - properly parse tags string 1672/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 29 Dec 2020 11:50:23 +0000 (12:50 +0100)
committerArthurHoaro <arthur@hoa.ro>
Tue, 29 Dec 2020 12:01:04 +0000 (13:01 +0100)
commit0640c1a6db6d9a13e5d0079f0bf42497010edbc7
tree17002fc6a277d21f728f103434bd8a70561affa5
parentfe58bdcd9e0ddca8a2a99142dc9eaee8845efa67
API: POST/PUT Link - properly parse tags string

Even though the documentation specify that tags should be passed as an array, tags string is actually allowed. So this adds a proper parsing with configured separator.

Related to #1651
application/api/ApiUtils.php
application/api/controllers/Links.php
tests/api/controllers/links/PostLinkTest.php
tests/api/controllers/links/PutLinkTest.php