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?

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.