Bug 23859: Make POST add the Location header on cities endpoint
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 21 Oct 2019 17:42:28 +0000 (14:42 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 Nov 2019 08:48:18 +0000 (08:48 +0000)
commit4de24b70e5d5cd2a4c5808509b6b47855a409dac
treece15e003209193017abe738b1123d12f3ae4260f
parentbd7a012c524a7eb89283aabb1fefa956e47b79ee
Bug 23859: Make POST add the Location header on cities endpoint

According to the coding guidelines, this endpoint should be adding the
Location header on POST actions.

To test:
1. Apply the tests patch
2. Run:
    $ kshell
    k$ prove t/db_dependent/api/v1/cities.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat (1)
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Cities.pm
api/v1/swagger/paths/cities.json