how to create an endpoint in java spring boot