You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by Hozaifa Daoud <ho...@blockchaingroup.io> on 2021/11/01 14:50:10 UTC

path parameters

Dears,

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

Please help me.
-- 
Best regards,
*Hozaifa Daoud*,
Senior Software Developer,
Blockchain Intelligence group.
https://blockchaingroup.io <http://blockchaingroup.io/>
hozaifa.aoud@blockchaingroup.io
+201008412681
https://www.linkedin.com/in/hozaifa-daoud-aa573272
<http://blockchaingroup.io/>

Re: path parameters

Posted by Zhiyuan Ju <ju...@apache.org>.
Hi Hozaifa,

Could you please attach your Route configuration here?

Best Regards!
Slack: https://apisix.apache.org/docs/general/community#slack


Hozaifa Daoud <ho...@blockchaingroup.io> 于2021年11月2日周二 上午7:57写道:

> Dears,
>
> 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"}
>
> Please help me.
> --
> Best regards,
> *Hozaifa Daoud*,
> Senior Software Developer,
> Blockchain Intelligence group.
> https://blockchaingroup.io <http://blockchaingroup.io/>
> hozaifa.aoud@blockchaingroup.io
> +201008412681
> https://www.linkedin.com/in/hozaifa-daoud-aa573272
> <http://blockchaingroup.io/>
>