REST: Difference between revisions
Adding See also & presentation link |
User links |
||
Line 27: | Line 27: | ||
== External references == | == External references == | ||
*[http://salzlechner.com/dev/2016/03/02/interfacing-dataflex-restful-web-services/ Interfacing DataFlex RESTful web services] (Michael Salzlechner) | *[http://salzlechner.com/dev/2016/03/02/interfacing-dataflex-restful-web-services/ Interfacing DataFlex RESTful web services] ([[User: Starzen|Michael Salzlechner]]) | ||
*[https://docs.google.com/document/d/1N3BvvygKfjKO_5TMosWrR8aahI-5VOz6-z-8jSqA_to/edit?usp=sharing Synergy 2019 REST APIs Course Exercise Instructions] (Mike Peat) | *[https://docs.google.com/document/d/1N3BvvygKfjKO_5TMosWrR8aahI-5VOz6-z-8jSqA_to/edit?usp=sharing Synergy 2019 REST APIs Course Exercise Instructions] ([[User: Mikepeat|Mike Peat]]) | ||
*[https://learning.dataaccess.com/courses/synergy-2019/how-to-build-a-restful-api-in-dataflex-19.1/ Synergy 2019 presentation "Building RESTful APIs in DataFlex"] (Mike Peat) | *[https://learning.dataaccess.com/courses/synergy-2019/how-to-build-a-restful-api-in-dataflex-19.1/ Synergy 2019 presentation "Building RESTful APIs in DataFlex"] ([[User: Mikepeat|Mike Peat]]) | ||
*[https://support.dataaccess.com/Forums/forumdisplay.php?59-OAuth-RESTFul-amp-Web-API-Integration OAuth Restful & Web API integration forum] | *[https://support.dataaccess.com/Forums/forumdisplay.php?59-OAuth-RESTFul-amp-Web-API-Integration OAuth Restful & Web API integration] section of the [https://support.dataaccess.com/Forums/forum.php Data Access Support Forum] | ||
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] | ||
Revision as of 15:39, 9 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.
See also
- RESTful Service Theory
- RESTful Services in DataFlex
- Consuming RESTful Services in DataFlex
- Creating RESTful Services in DataFlex
- A Simple RESTful Service
- Using the REST Library
External references
- Interfacing DataFlex RESTful web services (Michael Salzlechner)
- Synergy 2019 REST APIs Course Exercise Instructions (Mike Peat)
- Synergy 2019 presentation "Building RESTful APIs in DataFlex" (Mike Peat)
- OAuth Restful & Web API integration section of the Data Access Support Forum
Sourced from forum post: New REST support