RESTful api for a library system