• Register

Penguin Random House Developer Blog

Enhanced API v1.3.19 released

On Wednesday June 13, 2018, version 1.3.19 of the Enhanced PRH API was released to production. If you encounter any problems with your applications as a result of these changes, please contact us at api@penguinrandomhouse.com.

Version 1.3.19 release notes

This release fixes a couple of issues with POST requests. We fixed a bug where a JSON body with an unrecognized attriute was silently ignored and no warning or error was reported. Making a POST request that is not understood will now generate an HTTP 400. We also were requiring a different format for the on-sale data parameters in the POST body (i.e. '2018-06-13') than we were in GET parameters (i.e. '06/13/2018'). We've improved this so that the POST can now accept either date format though the GET still requires the 'M/D/Y' construction.

We also added a new parameter minAffinity for the /works/views/also-purchased view that adds a WHERE-clause filter of the form cp.affinity >= :minAffinity.

Bug

  • [RHAPI-759] - Different date formats expected in GET vs. POST
  • [RHAPI-972] - Passing unrecognized POST body elements is silently ignored
  • [RHAPI-974] - Missing display of price
  • [RHAPI-977] - Change mapIstcaWorks to work in the absence of author record
  • [RHAPI-978] - getWork returns data when no WORKxWEBDOMAIN_ISBNS record exists
  • [RHAPI-979] - POST with onSaleFrom and onSaleTo uses wrong time zone

New Feature

  • [RHAPI-982] - Add Affinity parameter to copurchase endpoints

Task

  • [RHAPI-961] - Expose the name of the host in /healthy
  • [RHAPI-967] - Add SQL call tracking to /works sales display view