You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/01 13:58:48 UTC

[GitHub] [apisix-dashboard] hozaifaaoud opened a new issue #2195: path parameter in the route

hozaifaaoud opened a new issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195


   ### Issue description
   
   I need to put the id as a path parameter in the route... How can I apply this using apisix dashboard?
   Here is an example 
   http://127.0.0.1:9080/v1/users/{id}
   I tried this 
   http://127.0.0.1:9080/v1/users/*
   but it returns 
   {"status":400,"message":"#/id: expected type: Integer, found: String"}
   
   
   
   ### Expected behavior
   
   //
   
   ### How to Reproduce
   
   //
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.5
   - OS (cmd: `uname -a`): linux ubuntu
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):  openresty/1.19.9.1
   - etcd version, if have (cmd: run `etcd --version`): 3.4.13
   - apisix-dashboard version, if have: 2.6
   - Browser version, if have:
   
   
   ### Additional context
   
   //


-- 
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-dashboard] hozaifaaoud commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-956344132


   I know that the is should be specified as a certain value.
   The question is ... while creating the route ... How can I create the route that accepts an id at its end??
   ![Capture](https://user-images.githubusercontent.com/79872781/139699065-6b3950df-58d5-4a28-8cc7-368a14b8bc32.PNG)
   


-- 
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-dashboard] hozaifaaoud commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-956344132


   I know that the is should be specified as a certain value.
   The question is ... while creating the route ... How can I create the route that accepts an id at its end??
   ![Capture](https://user-images.githubusercontent.com/79872781/139699065-6b3950df-58d5-4a28-8cc7-368a14b8bc32.PNG)
   


-- 
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-dashboard] Engine-AI commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
Engine-AI commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-957045123


   Hi!@hozaifaaoud  The value of "path" is a regular expression, and your url does not match this regular expression。


-- 
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-dashboard] Engine-AI commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
Engine-AI commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-957045123


   Hi!@hozaifaaoud  The value of "path" is a regular expression, and your url does not match this regular expression。


-- 
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-dashboard] Engine-AI commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
Engine-AI commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-957045123


   Hi!@hozaifaaoud  The value of "path" is a regular expression, and your url does not match this regular expression。


-- 
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-dashboard] zaunist commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
zaunist commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-956327491


   Hi, @hozaifaaoud , `id` must be specified a certain value, example: `http://127.0.0.1:9080/v1/users/1`, `http://127.0.0.1:9080/v1/users/2`


-- 
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-dashboard] zaunist commented on issue #2195: path parameter in the route

Posted by GitBox <gi...@apache.org>.
zaunist commented on issue #2195:
URL: https://github.com/apache/apisix-dashboard/issues/2195#issuecomment-956327491






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