The model and ddl can be verified by hitting cb_admin and going to the model section

REST Contract/Controller

As mentioned we are going to have do CRUD actions on the book entity by have four services exposed. The logic is contained in a controller class, relevant extracts are explained below and full file is available on github