https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40023
--- Comment #2 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 182832 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182832&action=edit Bug 40023: Add option to embed patron object on password validation response This patch adds the option to embed the patron object on a successful password validation. It does so by * Adding a new embed in the spec * Manually handling the embed in the controller * Calling `$c->objects->to_api` on the already available `$patron` object. To test: 1. Apply the unit tests 2. Run: $ ktd --shell k$ prove t/db_dependent/api/v1/password_validation.t => FAIL: Embedding is not allowed by the spec, or implemented at all. 3. Apply this patch 4. Rebuild the bundled spec: k$ yarn api:bundle 5. Repeat 2 => SUCCESS: Tests pass! 6. You can also play with your favourite REST tool (Postman is mine) 7. Sign off :-D Signed-off-by: Tomas Cohen Arazi <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
