Question

Need to consume Rest with same service name but with different Service url's

Need to consume rest with same service name but with different service URL's as below. Do I go ahead by consume each service URL seperately or what is the better way to handle this?

Below are the example service url's:

https://192.xx..xx.xx:1234/api/v1/a

https://192.xx.xx.xx:1234/api/v1/a/b

https://192.xx.xx.xx:1234/api/v1/a/b/result

https://192.xx.xx.xx:1234/api/v1/d

https://192.xx.xx.xx:1234/api/v1/d/p

https://192.xx.xx.xx:1234/api/v1/d/p/update

***Moderator Edit-Vidyaranjan: Masked IP addresses***

Correct Answer
November 11, 2019 - 4:50am

It IS possible only if requests and responses (data models) are the same for all endpoints. But usually that's not the case.

Basically, you can build the url dynamically, but you can provide only one stream and parse rule per connector.

Comments

Keep up to date on this post and subscribe to comments

November 11, 2019 - 4:02am

So you have different endpoints and you want to use one Connect-REST for all of them, am I right?

November 11, 2019 - 4:27am

Yes Vaspoz .I want to use one connect-rest as it i the same service. So it is possible? or Do I need to consume each one individually?

November 11, 2019 - 4:50am

It IS possible only if requests and responses (data models) are the same for all endpoints. But usually that's not the case.

Basically, you can build the url dynamically, but you can provide only one stream and parse rule per connector.