Hi, I am using https://api.github.com/users following apis in HTTP connector connector now I do want to pass usename as parameters as follows https://api.github.com/users/defunkt.
I am not sure how can I configure HTTP Operation to get username dynamically ?
As I said above, by configuring the username(which we set in the resource path) in the connector parameters, we would dynamically set the incoming username.
In the operation, under the resource path, configure like this:
The name I gave as username, but you can give the name as anything. But, in order to dynamically pass the username you must have to check the Is replacement variable?.
After that in the connector parameters configure the username parameter to the profile element and choose teh required profile(JSON or XML as per teh requirement) and choose the username field from that profile. This way you could dynamically pass the value.
In the resource path whatever you gave it will automatically appends slash(/) along with the resource path given, to the base url.
I mean your base URL is: https://api.github.com/users
Now, the username will be automatically appends as /username to the base URL. I mean the final URL here looks like this: https://api.github.com/users/username.
And how can I make it dynamic so it gets username of incoming document
Retrieving data ...