Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2812

Multiple GET methods with same REST communication channel

$
0
0

I have a REST  --- PI --- ECC synchronous scenario. I am usiing GET method anad it's working fine.  The endpoint for my REST is this host:port/REST/DFT/Employee/<number>

 

The last is dynamic, they enter the particular employee number and we get details of the respective employee from ECC. If they want all emplpoyees then they use host:port/DFT/Employee/* and ths star will fetch all employee details.

 

Now the cllient want one more requirement to be included. They may give a date range also, datefrom and dateto and we need to get employee details for that peroiod. This time the GET method has different inputs. is it possible to do both in one interface?

 

or do I have to design a new interface with new endpoint ? They need GET method only

 

I can do this in POST as in POST they send a payload. in GET they are not sending any payload...

 

Can there be multiple GET operationds in onre interface


Viewing all articles
Browse latest Browse all 2812

Trending Articles