Maybe you need to use correct path to call an API:
Then you can clear the symfony cache and try it out.