Based on the book "REST in practice"