create a service object for the book api