Development of Rest API webservice access to your data.

Xbase++ 2.0 Build 554 or later
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Development of Rest API webservice access to your data.

#11 Post by Cliff Wiernik »

I have used restful web services also connecting to other sites web api. Now I am working to provide the same style of services to access our data. I see that the json stuff is not yet documented in Xbase++ 2.0. Do you have your functions implemented yet in Express++. I see them mentioned in your post.

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Development of Rest API webservice access to your data.

#12 Post by rdonnay »

I see that the json stuff is not yet documented in Xbase++ 2.0. Do you have your functions implemented yet in Express++. I see them mentioned in your post.
I have attached a small test program that uses DC_Array2Js() and DC_Array2Xml().

Create a new \exp19\samples\web folder and unzip the attached files in that folder.
Run PBUILD RestFul.xpj.

This isn't really a Restful app but it shows how the same data can be rendered in a browse, json or xml.

Here is a CXP application that outputs data in many formats: Text, Html, Json, Xml :

http://bb.donnay-software.com/ds/custom ... omers2.cxp
Attachments
customers2.zip
(1.21 KiB) Downloaded 878 times
restful.zip
(16.97 KiB) Downloaded 919 times
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Development of Rest API webservice access to your data.

#13 Post by Cliff Wiernik »

Thanks.

Post Reply