on 01-10-2016 12:43 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Praveen
I am using a url like this
host:port/REST/DFT/Employee/<number>
If I am to enter datefrom and dateto
then I have to modify it like that
host:port/REST/DFT/Employee/<number>/DateFrom/DateTo
So in this case they will not send any value for <number>
if there is no value in <number> how will I keep it blank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.