Re: [EXTERNAL] Re: Mixing sql and service program in IWS...

Kelly Cookson <KCookson-EAwJ3jYHSpVWk0Htik3J/[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <SN6PR02MB41575A67E6531620A5E99D73AAE20@SN6PR02MB4157.namprd02.prod.outlook.com>
Hi Nadir, 

I think you are emphasizing that things can be set up so different types of HTTP requests (GET, POST, PUT, DELETE) will execute different procedures in the IWS REST service without needing to add anything to the URI. That makes sense to me.

I was emphasizing that one does not need to have a one-to-one correspondence between types HTTP requests and procedures within the IWS REST service. For example, it is possible to have multiple procedures within the same IWS REST service all use the HTTP GET request. 

But now I do have a question: 
Can you have 3 procedures *within the same IWS REST service* all use the GET HTTP request method without specifying a unique URI path template for each of those three procedures? 

If you select GET as the "HTTP request method" for three procedures, but you do not specify a unique "URI path template for method" for each of those three procedures, then how would the service know which procedure to execute when it receives an HTTP GET request?

Thanks,

Kelly Cookson
Senior Software Engineer II
Dot Foods, Inc.
1-217-773-4486  ext. 12676
www.dotfoods.com 

-- 
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.