Bug 28369: (QA follow-up) Restore PUT with deprecation message
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 May 2021 15:39:39 +0000 (12:39 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 25 May 2021 07:28:18 +0000 (09:28 +0200)
commit223541bba481d795a0f8c3cf30eb793707ee06b8
tree615489a416ffba8f97050263dd003b55a1c722ac
parenta554b5a54572334029ca4f5f036e63140d2a4bcd
Bug 28369: (QA follow-up) Restore PUT with deprecation message

This patch restores the PUT route, but adding a deprecation message. The
controller method is the same, and relevant patch tests are duplicated
but calling PUT, so it still gets tested.

To test:
1. Apply this patch
2. Reload plack
3. Open https://<>/api/v1/.html and find the PUT /holds/{hold_id} route
=> SUCCESS: There's a deprecation wargning!
4. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/paths/holds.json
t/db_dependent/api/v1/holds.t