jackkkkklee commented on issue #7404:
URL: https://github.com/apache/apisix/issues/7404#issuecomment-1191321122

   Set route
   ```
   {
       "plugins": {
           "openfunction": {
               "function_uri": 
"http://localhost:30585/default/function-sample-go";,
               "service_token": “foo:foo123”
           }
       },
       "uri": "/gohello"
   }'
   ```
   
   simulated request:
   ```
   POST https://<address of apisix>/gohello
   {"name":"openfunction"}
   ```
   
   And it will request the function_uri which is 
"http://localhost:30585/default/function-sample"; with request characteristics.
   
   response body
   
   ```
   hello,openfunction
   ```
   
   > > Supports using functions in OpenFunction as routing "upstream" via 
plugins to enable access to Faas functions.
   > 
   > So the function to be executed is directly in the body?
   > 
   > Can you give the configuration of the route and the simulated request.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to