0

I am a new learner to spring-cloud-function framework. I am trying to build a simple cloud function using spring-cloud-function framework and deploy in GCP cloud function. I am able to deploy it and test it out. However, it is accepting all the HTTP method type like GET, POST, PUT etc.

I want to restrict my cloud function to accept only POST method (Something like @PostMapping). Can anyone guide me on how to achieve it.

I am unable to find out on how to restrict cloud function calling to any specific HTTP method.

0 Answers0