https://github.com/techprimers/spring-cloud-function-example
Spring Cloud Function example
https://github.com/techprimers/spring-cloud-function-example
serverless serverless-framework serverless-functions spring spring-boot spring-cloud-function
Last synced: 2 months ago
JSON representation
Spring Cloud Function example
- Host: GitHub
- URL: https://github.com/techprimers/spring-cloud-function-example
- Owner: TechPrimers
- Created: 2019-07-14T19:58:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T20:02:27.000Z (almost 6 years ago)
- Last Synced: 2025-03-28T22:51:15.280Z (3 months ago)
- Topics: serverless, serverless-framework, serverless-functions, spring, spring-boot, spring-cloud-function
- Language: Java
- Size: 48.8 KB
- Stars: 8
- Watchers: 1
- Forks: 25
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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⏎
```