AnsweredAssumed Answered

Converting URI for REST service.

Question asked by Bravomao on Oct 30, 2018
Latest reply on Nov 1, 2018 by Mark_HE

Hi,

I'm configuring an API gateway for accepting REST request.

The backend REST URL is as below.

http://2.2.2.2:8080/benefit/reconsigned/fund/single/findInvestoryByCseq/{bhno}/{cseq}/{upno}/{xtype}

/benefit/reconsigned/fund/single/findInvestoryByCseq is fixed part.

/{bhno}/{cseq}/{upno}/{xtype} is dynamic information.

 

However, the client hopes to publish this REST service using the following URL to their customers.

http://1.1.1.1:8080/fsts/benefit/fund/single/cseq/{bhno}/{cseq}/{upno}/{xtype}

/fsts/benefit/fund/single/cseq/ is fixed part.

/{bhno}/{cseq}/{upno}/{xtype} is dynamic information.

 

Yes. The /benefit/reconsigned/fund/single/findInvestoryByCseq/ has been changed to /fsts/benefit/fund/single/cseq/.

 

I tried to create a web api for listening "http://1.1.1.1:8080/fsts/benefit/fund/single/cseq/*" and route to "http://2.2.2.2:8080/benefit/reconsigned/fund/single/findInvestoryByCseq/*" but failed.

 

What should I do to make this web api work?

 

 

Best Regards,

Outcomes