an example to use spring rest