TechPrimers / spring-cloud-function-example

Spring Cloud Function example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Cloud Function example

Exposed Functions as Endpoints

  • Supplier - /supply - returns an output
curl -H 'Content-Type: text/plain' http://localhost:8080/supply
Hello Youtube⏎                                                                                                      

  • Consumer - /consume - expects an input
curl -H 'Content-Type: text/plain' http://localhost:8080/consume -d 'Hello TechPrimer'
  • Function - /function - expects an input and output
curl -H 'Content-Type: text/plain' http://localhost:8080/function -d 'Hello TechPrimer'
Hello TechPrimer⏎    
  • Function - /hello - expects an input and output
curl -H 'Content-Type: text/plain' http://localhost:8080/hello -d 'TechPrimers'
Hello TechPrimers⏎  

About

Spring Cloud Function example


Languages

Language:Java 100.0%