Java backend restful api using spring mvc