Nathan,

Not the same...yet oData is REST...but not much fun to deal with without a
client library.

Charles




On Fri, Oct 30, 2015 at 3:03 PM, Nathan Andelin <nandelin@xxxxxxxxx> wrote:


Has anyone implemented OData style web services on the IBM i?
Apparently,
OData is a flavor of REST.


Dean,

Your question about OData is the first time I've heard of it. But in
partial response to your question, yes we are delivering content to
browsers via a REST API as follows:

protocol://domain/path/controller/action?query-string-parameters...

For example:

https://example.com/path/maintain-GL-accounts/list-accounts?type="Asset";

Just to delineate the parts a bit more:

https://example.com is probably self-explanatory... the HTTPS protocol is
used. External DNS and internal gateways route requests for "example.com"
to our IBM i HTTP server.

/path/ is useful in the event that the content returned by our web services
to clients may include relative references to static content on our web
server.

/controller/ is a reference to an RPG-based web service.

/action/ provides a basis for the "controller" to route requests further to
specific client I/O handlers.

?query-string-parameters provide additional parameters for the client I/O
handler to satisfy the request.

Does that help?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.