udpate books controller for api module