Spring Cloud Function Practice

Practice from Thomas Vitale Course

Useful Commands

  • To Build GraalVM Image
 mvn spring-boot:build-image 
  • To Curl Locally
curl -H "Content-Type:plain/text" localhost:8080 -d helloworld

The above will output DLROWOLLEH as the default endpoint exposed will give uppercase|reverse

  • To Curl Specific Functions
curl -H "Content-Type:plain/text" localhost:8080/uppercase -d helloworld
  • To Curl Specific Functions
curl -H "Content-Type:plain/text" localhost:8080/reverse -d helloworld

References: