You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "gepardi (via GitHub)" <gi...@apache.org> on 2023/04/10 06:34:05 UTC

[GitHub] [apisix] gepardi opened a new issue, #9275: help request: routing based on request body parameters

gepardi opened a new issue, #9275:
URL: https://github.com/apache/apisix/issues/9275

   ### Description
   
   Hello
   Is there a way to define routing based on request body parameters?
   
   ### Environment
   
   - APISIX version: latest 3.2
   - Operating system (run `uname -a`): latest
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): latest
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): latest
   - APISIX Dashboard version, if relevant: latest
   - Plugin runner version, for issues related to plugin runners: latest
   - LuaRocks version, for installation issues (run `luarocks --version`): latest
   


-- 
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] Sn0rt commented on issue #9275: help request: routing based on request body parameters

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

   > body
   
   can you provider a example of usage ?


-- 
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


[GitHub] [apisix] Sn0rt commented on issue #9275: help request: routing based on request body parameters

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

   > > 
   > 
   > Assume that the request body contains a field named username. We intend to route requests with usernames starting with 'apisix__' differently from those with usernames starting with 'other__'. One way to meet this requirement is to write a plugin. Is there another way?
   
   not support yet. howevert you can try to write self plugin for this feature . more info you can found from https://apisix.apache.org/zh/docs/apisix/next/plugins/ext-plugin-pre-req/


-- 
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


[GitHub] [apisix] gepardi commented on issue #9275: help request: routing based on request body parameters

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

   > 
   
   Assume that the request body contains a field named username. We intend to route requests with usernames starting with 'apisix__' differently from those with usernames starting with 'other__'. One way to meet this requirement is to write a plugin. Is there another way?


-- 
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


[GitHub] [apisix] gepardi commented on issue #9275: help request: routing based on request body parameters

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

   > > > 
   > > 
   > > 
   > > Assume that the request body contains a field named username. We intend to route requests with usernames starting with 'apisix__' differently from those with usernames starting with 'other__'. One way to meet this requirement is to write a plugin. Is there another way?
   > 
   > not support yet. howevert you can try to write self plugin for this feature . more info you can found from https://apisix.apache.org/zh/docs/apisix/next/plugins/ext-plugin-pre-req/
   
   Thank you.


-- 
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


[GitHub] [apisix] gepardi closed issue #9275: help request: routing based on request body parameters

Posted by "gepardi (via GitHub)" <gi...@apache.org>.
gepardi closed issue #9275: help request: routing based on request body parameters
URL: https://github.com/apache/apisix/issues/9275


-- 
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