× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Some more links that I got from IBM that may be helpful sometime:
http://www.ibm.com/developerworks/ibmi/library/i-integrated-web-services-server/index.html?ca=drs-
http://www-03.ibm.com/systems/power/software/i/iws/resources.html

--
Sean Porterfield


-----Original Message-----
From: Marco Facchinetti
Sent: Sunday, 06 March, 2016 13:46
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] IWS - Query Parm Help Needed

Try:

https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server1/
https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/
https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server3/

HTH

--
Marco Facchinetti

2016-03-02 21:12 GMT+01:00 Brian:

Hi Everyone,

I just recently jumped in to the realm of using IWS to provide RESTful
services. I am using the program to feed data to a web portal that
will show a grid of information in it for whatever customer has logged in.

Initially when loading the grid, it will be shown in date/time format
with most recent activity at the top. But, then I want to have the
ability to allow the user to perhaps filter the data or click a column
heading and sort the data. Full disclosure, I am not the user
interface guy on this, just the person providing the data back in a JSON format from IWS.

So, right now this works great:

http://myserver:10010/web/services/TICKETS/xxxxxxxxxx

Where "xxxxxxxxxx" is the customer ID and is set up as a *PATH_PARAM.
This would always be a required part of the path.

So a real URL might look like:

http://myserver:10010/web/services/TICKETS/CUSTOMERA

Now I am trying to figure out how to accept in additional parameters
in to the request that might be for sorting or filtering the data. I
think a real request might look like:


http://myserver:10010/web/services/TICKETS/CUSTOMERA?state=closed&sort
=-updated_at

This would retrieve tickets for customer A where the state is closed
and sort them with most recent at the top.

So, with all that said, how do I set up the service program to accept
this "?state=closed&sort=-updated_at" and how do I configure the IWS
service to accept it and pass it in?

I am thinking maybe the sort/filter is another entry parameter but
I've not been able to get it to work so I am hoping someone here has
already blazed this trail. There still does not seem to be a ton of
info out there on IWS and even less with IWS and RESTful services.

Thanks all in advance,
Brian


________________________________

This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.