Reputation: 6826
I'm following the Spring Cloud Function tutorial.
In the example, they are calling the revert
bean with this command:
curl localhost:8080/reverseString -H "Content-Type: text/plain" -d "abc"
I like to call the endpoint from a browser/postman as a GET request.
So I was looking to orchestrate a URL with a query parameter, that may look like localhost:8080/reverseString?input=abc
But:
HTTP 200
response, with no response body. reverseStringggg
, reve
...Upvotes: 1
Views: 630
Reputation: 6126
You can pass it as localhost:8080/reverseString/abc
That said, I've raise the issue to explicitly support http parameters - https://github.com/spring-cloud/spring-cloud-function/issues/864
Upvotes: 1