Search code examples
springspring-bootspring-cloudspring-cloud-gateway

Spring cloud gateway GET api is working fine but POST is not


I'm new to Spring cloud and spring backend development. I'm trying to develop a simple microservice with spring cloud gateway.

Github links to Discovery Server, Spring Cloud Api Gateway and User micro service. Astonishingly when I execute the APIs in Postman, the GET API works but not the POST.

I tried to debug, It didn't come to my Controller for POST. What am I missing? Or doing wrong? Any help or suggestion would be helpful.


Solution

  • Found the problem. If anyone else has a similar problem.

    I missed out on routes for POST API. Thanks, @spencergibb for the hint.