REST: Difference between revisions
m Added some pointer where you can find demo code. |
m Cat |
||
Line 27: | Line 27: | ||
Sourced from [https://support.dataaccess.com/Forums/showthread.php?64503-New-REST-support forum post: New REST support] | Sourced from [https://support.dataaccess.com/Forums/showthread.php?64503-New-REST-support forum post: New REST support] | ||
[[Category:REST]] | |||
[[Category:Web Services]] | [[Category:Web Services]] | ||
[[Category:System Integration]] | [[Category:System Integration]] |
Revision as of 16:12, 7 August 2019
With DataFlex you can create RESTful web services as well as consume those web services.
Client side
Consuming REST services was made a lot easier since DataFlex 19.0 when it added native JSON support.
Consume a REST service: See cJsonHttpTransfer and JSON Parsing and Transfer
You can find a demo of how-to use cJsonHttpTransfer in DAWs WebOrder workspace.
Server side
Creating REST web services has been made easy since DataFlex 19.1 with the introduction of the cWebHttpHandler handler.
For an example see the DemoSimpleRestService.wo file in the WebOrder example workspace.
You can create a REST service with earlier DataFlex versions, see here for how-to do so in DataFlex 19.0, but it is probably better to use DataFlex 19.1 in that case.
External references
Interfacing DataFlex RESTful web services (Michael Salzlechner)
Synergy REST APIs Course Exercise Instructions (by Mike Peat)
OAuth Restful & Web API integration forum
Sourced from forum post: New REST support