You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "navendu-pottekkat (via GitHub)" <gi...@apache.org> on 2023/03/01 14:15:45 UTC

[GitHub] [apisix] navendu-pottekkat opened a new issue, #8980: docs: update example in serverless Plugin documentation

navendu-pottekkat opened a new issue, #8980:
URL: https://github.com/apache/apisix/issues/8980

   ### Current State
   
   The current [documentation of the serverless Plugin](https://apisix.apache.org/docs/apisix/plugins/serverless/#enabling-the-plugin) shows a simple example of a log function:
   
   ```lua
   return function() ngx.log(ngx.ERR, \"serverless pre function\"); end 
   ```
   
   ### Desired State
   
   This could be updated with a non-trivial example that could show the capabilities of the Plugin better:
   
   ```
           "serverless-pre-function": {
               "phase": "rewrite",
               "functions" : [
                   "return function(conf, ctx)
                       local core = require(\"apisix.core\")
                       if not ngx.var.arg_name then
                           local uri_args = core.request.get_uri_args(ctx)
                           uri_args.name = \"world\"
                           ngx.req.set_uri_args(uri_args)
                       end
                   end"
               ]
           }
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Neilblaze commented on issue #8980: docs: update example in serverless Plugin documentation

Posted by "Neilblaze (via GitHub)" <gi...@apache.org>.
Neilblaze commented on issue #8980:
URL: https://github.com/apache/apisix/issues/8980#issuecomment-1450239786

   /assign_me @navendu-pottekkat 


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: update example in serverless Plugin documentation [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8980:
URL: https://github.com/apache/apisix/issues/8980#issuecomment-1945746846

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org