Test the Rest API

Rest API is not behaving correctly. Or is it?!!!