cancel
Showing results for 
Search instead for 
Did you mean: 

How to register API in SAP API management having path variable

Former Member
0 Kudos

I want to register Rest APi in SAP API management having Path variable in API URL. For Example:

https://<hostname>:<port>/rest/v3/user/{userName}/finger

How to pass userName as Path variable at runtime in API management as we can use any query param.

Accepted Solutions (0)

Answers (1)

Answers (1)

divyamary
Contributor
0 Kudos

Hi Rubal,

You can create an API Proxy to your Rest API by just providing the target endpoint path or URL as https://<hostname>:<port>/rest/v3/user/ . During the API Proxy call any path variable that you would pass after your proxy base path would be automatically appended to the target path too.

Thanks and Best Regards,

Divya

PascalForster
Explorer
0 Kudos

Hi divya.mary ,

Is there any chance to read such a path variable within the API policy?

If we have a look at the example above i'm wondering if i can somehow access the path variable "userName" in a similar way as i can also access query params or header values.

Any idea on that?

Thank you very much
Pascal