How to call a REST API with path parameter?

I found documentation about how to call a REST API with query parameters, but nothing about path parameter.
For example, how to call:
https://api.company.com/orders/AKL7315901
where AKL7315901 is the order number ?

Thanks.

Are you looking to call the API on the client-side or in Server Action? Either way, you can create a dynamic url for the call. The process is slightly different depending which you are using.

Hi, the call is on client-side with API Data Source component, and I want to use a parameter in the path for the value “DCUK7315901” :

Can you tell me how to create a dynamic url for the call in this case ?

Thanks.