|By Jayaram Krishnaswamy||
|February 14, 2017 07:24 PM EST|
In the following post, I describe creating a service endpoint using server side code for a Collection(similar to a table). The same interface can be used for creating service flow with advanced logic to include REST API, SOAP Services, Custom SQL Queries, etc.
API Express create new project FFD
Note: I am not sure why there is a textbox below the Create New Project button as the following screen asks for the name of a New Project.
In the New project window enter the name.
New project is created. Click on SQLData in the project page to open the SQLData page as shown.
Click new service in the screen above.
The New service page opens as shown.
Provide a Group name (JanSvc2_14) and choose Custom REST API and click create.
Drag and drop the Server Code (SC) from the PALETTE to the empty box as shown. If you want to remove it you click the red circle with x.
In the PROPERTIES -SERVER CODE click the handle and select the only script there -loadGoodsScript. For the Script Query Parameters click on the handle to reveal the following:
For SCRIPT BODY place check mark for Use previous component and click Generate.
Click Generate. Generate Service Response window opens.
Click Run Server Code API.
The code is run and the result is displayed as shown.
Click Import Response.
The Response is now in the visual designer.
Now you can test the API. Click TEST in the menu. The Service Test page is opened displaying the endpoint and a Test button as shown.
The Test succeeds otherwise there would be an error which you can debug by going to the Settings.
Copy the endpoint in the above and paste it to the address of a browser and you should see this.
Now you have a endpoint to work with.
Mar. 24, 2017 03:30 AM EDT Reads: 3,149
Mar. 24, 2017 03:15 AM EDT Reads: 7,907
Mar. 24, 2017 02:15 AM EDT Reads: 7,029
Mar. 24, 2017 01:45 AM EDT Reads: 1,230
Mar. 24, 2017 01:30 AM EDT Reads: 3,482
Mar. 23, 2017 11:30 PM EDT Reads: 725
Mar. 23, 2017 11:30 PM EDT Reads: 4,357
Mar. 23, 2017 10:45 PM EDT Reads: 2,392
Mar. 23, 2017 10:15 PM EDT Reads: 3,276
Mar. 23, 2017 10:00 PM EDT Reads: 3,429
Mar. 23, 2017 07:15 PM EDT Reads: 4,306
Mar. 23, 2017 06:00 PM EDT Reads: 1,336
My team embarked on building a data lake for our sales and marketing data to better understand customer journeys. This required building a hybrid data pipeline to connect our cloud CRM with the new Hadoop Data Lake. One challenge is that IT was not in a position to provide support until we proved value and marketing did not have the experience, so we embarked on the journey ourselves within the product marketing team for our line of business within Progress. In his session at @BigDataExpo, Sum...
Mar. 23, 2017 04:15 PM EDT Reads: 2,474
The taxi industry never saw Uber coming. Startups are a threat to incumbents like never before, and a major enabler for startups is that they are instantly “cloud ready.” If innovation moves at the pace of IT, then your company is in trouble. Why? Because your data center will not keep up with frenetic pace AWS, Microsoft and Google are rolling out new capabilities In his session at 20th Cloud Expo, Don Browning, VP of Cloud Architecture at Turner, will posit that disruption is inevitable for c...
Mar. 23, 2017 03:45 PM EDT Reads: 1,788
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 20th International Cloud Expo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
Mar. 23, 2017 03:30 PM EDT Reads: 1,728