the classic guessing game in api form using symfony and fosrestbundle