diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/.gitignore b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/.gitignore new file mode 100644 index 0000000..6fd9155 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/.gitignore @@ -0,0 +1,18 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/.Net Standard 2.0/samples/RunReport/.vs +/.Net Standard 2.0/samples/RunReport/obj + +**/.idea/workspace.xml +**/target/ + +**/obj/ + +**/vs/ + +**/node_modules/ +error.log +package-lock.json +files/output.docx diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/README.md b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/README.md new file mode 100644 index 0000000..64a0f52 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/README.md @@ -0,0 +1,20 @@ +# Fluent JavaScript RESTful Client v2 Sample + +## Overview +This sample project demonstrates how to use the v2 JavaScript RESTful Client to accomplish: +1. Generating a document +2. Retrieving a template's metrics +3. Retrieving a template's tag tree + +This project consists of 3 main classes that can each be individually ran to show each piece of functionality. +This is just a sample app demonsrating the functionality of this client. + +## Requirements +* NPM installation + +## Usage +We provide .bat files for each sample that can be used to run the samples. + +## Additional Information +* More information about the API can be found [here](https://www.npmjs.com/package/windwardrestapi). +* The RESTful Engine SwaggerHub can be found [here](https://app.swaggerhub.com/apis/Windward-Studios/fluent-rest_full_api/2.0) \ No newline at end of file diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/config.json b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/config.json new file mode 100644 index 0000000..b2c3cf2 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/config.json @@ -0,0 +1,4 @@ +{ + "restful-engine-url": "", + "license": "" +} \ No newline at end of file diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.docx b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.docx new file mode 100644 index 0000000..4f71c26 Binary files /dev/null and b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.docx differ diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.xml b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.xml new file mode 100644 index 0000000..8a3c833 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/files/InvestmentFactSheet.xml @@ -0,0 +1,1990 @@ + + + TNS + + 027618Y2X + + WOODGRV + + 13 + + Equity Fund + 2008-08-05 + Woodgrove Bank + + + Tately/Mumford + 6.5 + 20770.5284 + 0.42 + 4.2 + 0.03 + 0.038 + 0.024 + 23 + 4 + Growth + 0 + The investment seeks current income, growth of capital and conservation of principal. + The fund invests primarily in common stocks of companies that are likely to participate in the growth of the American economy and whose dividends appear to be sustainable. It invests primarily in securities of issuers domiciled in the United States and Canada. The fund may also invest in bonds and other debt securities, including those issued by the U.S. government and by federal agencies and instrumentalities. + Risks may include Long-Term Outlook and Projections, Loss of Money, Not FDIC Insured, Growth Investing, Active Management, Income, Market/Market Volatility, Fixed-Income Securities. + 2016-06-30 + 7.2385 + 5.5399 + 15.2827 + 1.2631 + 5.6666 + 5.1124 + 6.1738 + 4.6773 + 7.9352 + 9.6447 + 11.8441 + 12.8618 + 2.06 + 0.79 + 97.22 + 12.87 + 2.6100 + 8.2200 + 2016-06-01 + + 8.6771 + 3.0055 + 15.8013 + -2.1913 + 5.2761 + 11.8842 + 81.6800 + 3.8800 + 3.2200 + 0.0000 + 0.1800 + 0.0000 + 9.0800 + 1.9700 + + + + + + + + + + + 1053B1Y0X + + BLUMONEY + + 13 + + Equity Fund + 1991-01-10 + Blue Money + + + Gates/Poorbaugh/Wistrom + 1.41 + 786.8780 + 1.18 + 11.8 + 0.05 + 0.041 + 0.018 + 234 + 5 + Aggressive + 0 + The investment seeks capital appreciation. + The fund invests principally in common stocks of U.S. companies and, to a lesser extent, in equity securities of foreign issuers, usually those that are publicly traded in the United States either directly or through American Depositary Receipts ("ADRs"). It invests in companies in a broad range of industries but generally focuses on companies whose earnings under normal economic conditions are growing by at least 20% per year and whose stocks sell at reasonable price-to-earnings ratios. The fund targets fundamentally sound mid - cap or larger companies that are experiencing a positive change. + Risks may include Foreign Securities, Long-Term Outlook and Projections, Loss of Money, Not FDIC Insured, High Portfolio Turnover , Market/Market Volatility, Mid-Cap. + 2016-06-30 + 2.5228 + -10.1411 + 7.4697 + -5.7775 + 3.1623 + 9.0997 + 6.1738 + 4.6773 + 7.9352 + 9.6447 + 11.8441 + 12.8618 + -9.43 + 1.12 + 88.22 + 19.13 + 0.0000 + 16.7600 + + 10.0765 + 5.7578 + 17.5011 + 2.8677 + 6.0263 + 10.5636 + 89.8500 + 6.1800 + 0.0000 + 0.0000 + 0.0000 + 0.0000 + 3.9700 + 0.0000 + + + + + + + + 197191Y0X + + CONCASH + + 13 + + Equity Fund + 2000-10-13 + Contoso + + + Porter/Posner + 16.51 + 17180.1856 + 1.11 + 11.1 + 0.06 + 0.042 + 0.015 + 18 + 2 + Aggressive + 0 + The investment seeks long-term capital appreciation. + Under normal circumstances, the fund invests a majority of its net assets in the common stock of small- and mid-sized companies with market capitalizations under $5 billion at the time of investment. It invests the majority of its assets in U.S. companies, but also may invest up to 33% of its total assets in foreign companies in developed markets (for example, Japan, Canada and the United Kingdom) and in emerging markets (for example, China, India and Brazil). + Risks may include Emerging Markets, Foreign Securities, Loss of Money, Not FDIC Insured, Market/Market Volatility, Industry and Sector Investing, Management, Small Cap, Mid-Cap. + 2016-06-30 + 9.1054 + -3.0350 + 18.2909 + 1.4049 + 9.2163 + 8.6166 + 6.1738 + 4.6773 + 7.9352 + 9.6447 + 11.8441 + 12.8618 + -0.98 + 1.2 + 90.51 + 20.4 + 0.0000 + 2.3900 + + 8.1024 + -2.9852 + 19.0122 + 1.9050 + 8.4656 + 10.1567 + 87.8000 + 12.0300 + 0.0000 + 0.0000 + 0.0000 + 0.0000 + 0.0000 + 0.1800 + + + + + + + + + + 2012-08-31 + 10000.00 + + + 2012-09-30 + 9271.72 + + + 2012-10-31 + 7952.81 + + + 2012-11-30 + 7515.80 + + + 2012-12-31 + 7651.80 + + + 2013-01-31 + 7170.55 + + + 2013-02-28 + 6524.88 + + + 2013-03-31 + 7008.94 + + + 2013-04-30 + 7519.13 + + + 2013-05-31 + 7883.54 + + + 2013-06-30 + 7950.18 + + + 2013-07-31 + 8468.76 + + + 2013-08-31 + 8726.01 + + + 2013-09-30 + 8963.96 + + + 2013-10-31 + 8873.46 + + + 2013-11-30 + 9404.14 + + + 2013-12-31 + 9623.28 + + + 2014-01-31 + 9299.18 + + + 2014-02-28 + 9498.62 + + + 2014-03-31 + 9932.06 + + + 2014-04-30 + 10128.70 + + + 2014-05-31 + 9430.02 + + + 2014-06-30 + 9109.04 + + + 2014-07-31 + 9690.47 + + + 2014-08-31 + 9366.05 + + + 2014-09-30 + 10046.81 + + + 2014-10-31 + 10343.80 + + + 2014-11-30 + 10250.46 + + + 2014-12-31 + 10818.81 + + + 2015-01-31 + 11011.16 + + + 2015-02-28 + 11289.00 + + + 2015-03-31 + 11352.69 + + + 2015-04-30 + 11701.14 + + + 2015-05-31 + 11640.92 + + + 2015-06-30 + 11541.24 + + + 2015-07-31 + 11220.89 + + + 2015-08-31 + 10762.01 + + + 2015-09-30 + 10224.63 + + + 2015-10-31 + 11074.50 + + + 2015-11-30 + 11139.88 + + + 2015-12-31 + 11358.44 + + + 2016-01-31 + 11639.66 + + + 2016-02-29 + 11969.20 + + + 2016-03-31 + 12211.60 + + + 2016-04-30 + 12269.07 + + + 2016-05-31 + 11742.94 + + + 2016-06-30 + 12180.62 + + + + + E0USA0028N + E + United States + 002841Y0X + US002841Y0X0 + ABCDE + Euro + Trey Research Inc + 3.31 + 10978000 + 672841620 + 1260000 + Healthcare + 20636085 + 16.7 + 1999-12-31 + + + E0USA007Y1 + E + United States + 437061Y0X + US437061Y0X9 + ABCDE + US Dollar + Northwind Home Supplies + 2.98 + 12050000 + 606235500 + 1100000 + Consumer Cyclical + 10217035 + 27.47 + 2006-09-30 + + + E0USA003LR + E + United States + 9234V1Y0X + US9234V1Y0X4 + ABCDE + US Dollar + The Phone Company + 2.83 + 15078900 + 576466347 + 0 + Communication Services + 30845100 + 14.48 + 2000-12-31 + + + E0USA00D7T + E + United States + 0020R1Y0X + US0020R1Y0X3 + ABCDE + US Dollar + Bananaphone Communications Inc + 2.42 + 15753700 + 491988051 + -2630000 + Communication Services + 30845100 + 22.62 + 1996-03-31 + + + E0USA015MN + E + United States + 5007N1Y0X + US5007N1Y0X6 + ABCDE + US Dollar + Stufface Inc + 2.28 + 12179700 + 462950397 + 0 + Consumer Defensive + 20531077 + 5.63 + 2009-03-31 + + + E0USA002QP + E + United States + 031121Y0X + US031121Y0X9 + ABCDE + Euro + BCD Healthcare + 2.16 + 6455748 + 438926307 + 1770000 + Healthcare + 20635084 + 16.93 + 2007-03-31 + + + E0USA00A05 + E + United States + 594981Y0X + US594981Y0X5 + ABCDE + US Dollar + Reliable Software, Inc. + 2.02 + 12726598 + 410432786 + 0 + Technology + 31165134 + 19.26 + 2003-06-30 + + + E0USA00EJ3 + E + United States + 913071Y0X + US913071Y0X6 + ABCDE + US Dollar + Contoso Technologies Corp + 1.88 + 4620100 + 383191094 + -456000 + Industrials + 31061119 + 3.98 + 1996-03-31 + + + E0USA005UB + E + United States + 260531Y0X + US260531Y0X8 + ABCDE + US Dollar + Sorta Toxic Chemical Co + 1.84 + 10826400 + 375026496 + 0 + Industrials + 31055110 + 11.54 + 2003-06-30 + + + E0USA012HC + E + United States + 911321Y0X + US911321Y0X8 + ABCDE + US Dollar + Fast Planes Carrying Big Packages + 1.76 + 4427300 + 357371656 + 897300 + Industrials + 31062124 + 9.07 + 2005-06-30 + + + + + + + 2005-12-31 + 10000.00 + + + 2006-01-31 + 9812.03 + + + 2006-02-28 + 9506.58 + + + 2006-03-31 + 9746.24 + + + 2006-04-30 + 9962.41 + + + 2006-05-31 + 10084.59 + + + 2006-06-30 + 9722.75 + + + 2006-07-31 + 8895.68 + + + 2006-08-31 + 8876.88 + + + 2006-09-30 + 8599.63 + + + 2006-10-31 + 9013.16 + + + 2006-11-30 + 8895.68 + + + 2006-12-31 + 8651.32 + + + 2007-01-31 + 8684.21 + + + 2007-02-28 + 8468.05 + + + 2007-03-31 + 8533.84 + + + 2007-04-30 + 8947.37 + + + 2007-05-31 + 9492.48 + + + 2007-06-30 + 9868.42 + + + 2007-07-31 + 10042.29 + + + 2007-08-31 + 10385.34 + + + 2007-09-30 + 10056.39 + + + 2007-10-31 + 10794.17 + + + 2007-11-30 + 11000.94 + + + 2007-12-31 + 11193.61 + + + 2008-01-31 + 11419.17 + + + 2008-02-29 + 11724.62 + + + 2008-03-31 + 11973.68 + + + 2008-04-30 + 11306.39 + + + 2008-05-31 + 11343.99 + + + 2008-06-30 + 11832.71 + + + 2008-07-31 + 11301.69 + + + 2008-08-31 + 11235.90 + + + 2008-09-30 + 11846.80 + + + 2008-10-31 + 11997.18 + + + 2008-11-30 + 12810.15 + + + 2008-12-31 + 13350.56 + + + 2009-01-31 + 12927.63 + + + 2009-02-28 + 13317.67 + + + 2009-03-31 + 13016.92 + + + 2009-04-30 + 12307.33 + + + 2009-05-31 + 12960.53 + + + 2009-06-30 + 13515.04 + + + 2009-07-31 + 14506.58 + + + 2009-08-31 + 14553.57 + + + 2009-09-30 + 14727.44 + + + 2009-10-31 + 14025.83 + + + 2009-11-30 + 14510.15 + + + 2009-12-31 + 14471.01 + + + 2010-01-31 + 15199.95 + + + 2010-02-28 + 15190.16 + + + 2010-03-31 + 15566.86 + + + 2010-04-30 + 15645.13 + + + 2010-05-31 + 15048.29 + + + 2010-06-30 + 14896.63 + + + 2010-07-31 + 14696.06 + + + 2010-08-31 + 14852.61 + + + 2010-09-30 + 15239.09 + + + 2010-10-31 + 15831.65 + + + 2010-11-30 + 16053.92 + + + 2010-12-31 + 16046.74 + + + 2011-01-31 + 16370.71 + + + 2011-02-28 + 16132.79 + + + 2011-03-31 + 16426.39 + + + 2011-04-30 + 16922.47 + + + 2011-05-31 + 17929.83 + + + 2011-06-30 + 17874.14 + + + 2011-07-31 + 17960.20 + + + 2011-08-31 + 18486.65 + + + 2011-09-30 + 19326.95 + + + 2011-10-31 + 20145.66 + + + 2011-11-30 + 19409.16 + + + 2011-12-31 + 19810.59 + + + 2012-01-31 + 17806.52 + + + 2012-02-29 + 17626.88 + + + 2012-03-31 + 17391.11 + + + 2012-04-30 + 18491.38 + + + 2012-05-31 + 19316.59 + + + 2012-06-30 + 18755.22 + + + 2012-07-31 + 17054.29 + + + 2012-08-31 + 16734.31 + + + 2012-09-30 + 13388.57 + + + 2012-10-31 + 11457.47 + + + 2012-11-30 + 10845.58 + + + 2012-12-31 + 11126.27 + + + 2013-01-31 + 10531.22 + + + 2013-02-28 + 9773.38 + + + 2013-03-31 + 10065.29 + + + 2013-04-30 + 10396.49 + + + 2013-05-31 + 10447.01 + + + 2013-06-30 + 10694.02 + + + 2013-07-31 + 11126.27 + + + 2013-08-31 + 11165.56 + + + 2013-09-30 + 11603.43 + + + 2013-10-31 + 11196.69 + + + 2013-11-30 + 11826.85 + + + 2013-12-31 + 12158.82 + + + 2014-01-31 + 11533.70 + + + 2014-02-28 + 12181.35 + + + 2014-03-31 + 12907.84 + + + 2014-04-30 + 13195.05 + + + 2014-05-31 + 12079.98 + + + 2014-06-30 + 11167.64 + + + 2014-07-31 + 11826.55 + + + 2014-08-31 + 11043.75 + + + 2014-09-30 + 12265.82 + + + 2014-10-31 + 12997.94 + + + 2014-11-30 + 13386.53 + + + 2014-12-31 + 14439.66 + + + 2015-01-31 + 14681.82 + + + 2015-02-28 + 15053.51 + + + 2015-03-31 + 15115.46 + + + 2015-04-30 + 15413.94 + + + 2015-05-31 + 15030.98 + + + 2015-06-30 + 14771.93 + + + 2015-07-31 + 14372.08 + + + 2015-08-31 + 13240.11 + + + 2015-09-30 + 12108.14 + + + 2015-10-31 + 13425.95 + + + 2015-11-30 + 13161.26 + + + 2015-12-31 + 12947.26 + + + 2016-01-31 + 13870.86 + + + 2016-02-29 + 14709.98 + + + 2016-03-31 + 15160.51 + + + 2016-04-30 + 14867.66 + + + 2016-05-31 + 13594.90 + + + 2016-06-30 + 13273.89 + + + + + E0USA002US + E + United States + 037831Y0X + US037831Y0X5 + ABCDE + US Dollar + Electronics, Inc. + 7.98 + 181500 + 108803805 + -2200 + Technology + 0.00 + 31167137 + 46.3 + 2009-09-30 + + + E0USA010QP + E + United States + 278621Y0X + US278621Y0X0 + ABCDE + US Dollar + Tasmainian Traders Inc + 3.92 + 1449100 + 53457299 + 140000 + Consumer Cyclical + 0.00 + 10217037 + 35.92 + 2011-09-30 + + + E0USA00Y07 + E + United States + 723771Y0X + US723771Y0X1 + ABCDE + US Dollar + ABC Energy Company + 3.77 + 460300 + 51364877 + -26000 + Energy + 0.00 + 30947102 + -3.04 + 2011-09-30 + + + E0USA00BSW + E + United States + 747551Y0X + US747551Y0X6 + ABCDE + US Dollar + Awesome Computers + 3.75 + 751200 + 51096624 + -42500 + Technology + 0.00 + 31166135 + 3.01 + 2011-09-30 + + + E0USA005YB + E + United States + 268681Y0X + US268681Y0X7 + ABCDE + US Dollar + CDE Technology + 3.43 + 1565400 + 46774152 + -88500 + Technology + 0.00 + 31167140 + 17.13 + 2011-09-30 + + + E0USA003UE + E + United States + 099741Y0X + US099741Y0X4 + ABCDE + US Dollar + Proseware, Inc + 3.40 + 549600 + 46353264 + -26700 + Consumer Cyclical + 0.00 + 10209018 + 2.34 + 2011-09-30 + + + E0USA015NL + E + United States + G115C1Y0X + IE00B4NMYYX4 + ABCDE + US Dollar + Litware Technology East + 3.38 + 715000 + 46117500 + 715000 + Technology + 31165132 + 14.91 + 2012-03-31 + + + E0USA004HH + E + United States + 151001Y0X + US151001Y0X9 + ABCDE + US Dollar + Caring Healthcare Company Inc + 3.31 + 581800 + 45101136 + -32900 + Healthcare + 0.00 + 20635084 + -4.02 + 2011-03-31 + + + E0USA006SS + E + United States + 345308Y6X + US345308Y6X0 + ABCDE + US Dollar + Contoso Motor Co + 3.08 + 3360500 + 41972645 + -190000 + Consumer Cyclical + 0.00 + 10209017 + -11.8 + 2011-12-31 + + + E0USA004RM + E + United States + 1727R1Y0X + US1727R1Y0X3 + ABCDE + US Dollar + The Phone Hardware Company + 2.98 + 1920200 + 40612230 + -108500 + Technology + 0.00 + 31166135 + -4.31 + 2011-12-31 + + + + + + + 2005-12-31 + 10000.00 + + + 2006-01-31 + 9898.88 + + + 2006-02-28 + 9769.66 + + + 2006-03-31 + 10483.15 + + + 2006-04-30 + 10455.06 + + + 2006-05-31 + 10134.83 + + + 2006-06-30 + 9617.98 + + + 2006-07-31 + 8471.91 + + + 2006-08-31 + 8539.33 + + + 2006-09-30 + 8028.09 + + + 2006-10-31 + 8365.17 + + + 2006-11-30 + 8904.49 + + + 2006-12-31 + 8617.98 + + + 2007-01-31 + 8410.11 + + + 2007-02-28 + 8275.28 + + + 2007-03-31 + 8376.41 + + + 2007-04-30 + 9101.12 + + + 2007-05-31 + 9741.57 + + + 2007-06-30 + 10039.33 + + + 2007-07-31 + 10505.62 + + + 2007-08-31 + 11050.56 + + + 2007-09-30 + 10921.35 + + + 2007-10-31 + 11808.99 + + + 2007-11-30 + 12191.01 + + + 2007-12-31 + 12483.56 + + + 2008-01-31 + 12933.41 + + + 2008-02-29 + 13180.84 + + + 2008-03-31 + 13372.02 + + + 2008-04-30 + 12888.43 + + + 2008-05-31 + 13118.98 + + + 2008-06-30 + 13573.95 + + + 2008-07-31 + 12881.46 + + + 2008-08-31 + 12864.57 + + + 2008-09-30 + 13450.09 + + + 2008-10-31 + 13782.26 + + + 2008-11-30 + 14643.65 + + + 2008-12-31 + 15111.84 + + + 2009-01-31 + 14779.64 + + + 2009-02-28 + 15193.43 + + + 2009-03-31 + 14907.86 + + + 2009-04-30 + 14295.92 + + + 2009-05-31 + 15006.93 + + + 2009-06-30 + 15504.68 + + + 2009-07-31 + 16374.26 + + + 2009-08-31 + 16285.53 + + + 2009-09-30 + 16545.82 + + + 2009-10-31 + 16137.64 + + + 2009-11-30 + 16936.24 + + + 2009-12-31 + 17040.32 + + + 2010-01-31 + 18159.04 + + + 2010-02-28 + 18189.94 + + + 2010-03-31 + 18715.31 + + + 2010-04-30 + 18900.73 + + + 2010-05-31 + 18041.61 + + + 2010-06-30 + 18001.88 + + + 2010-07-31 + 17302.05 + + + 2010-08-31 + 17645.71 + + + 2010-09-30 + 18076.86 + + + 2010-10-31 + 18857.92 + + + 2010-11-30 + 19382.79 + + + 2010-12-31 + 19448.16 + + + 2011-01-31 + 19977.59 + + + 2011-02-28 + 20037.91 + + + 2011-03-31 + 20319.37 + + + 2011-04-30 + 20909.12 + + + 2011-05-31 + 21934.47 + + + 2011-06-30 + 21660.21 + + + 2011-07-31 + 20670.11 + + + 2011-08-31 + 20921.02 + + + 2011-09-30 + 21599.18 + + + 2011-10-31 + 22250.20 + + + 2011-11-30 + 21056.65 + + + 2011-12-31 + 20885.52 + + + 2012-01-31 + 19474.83 + + + 2012-02-29 + 19011.83 + + + 2012-03-31 + 18816.50 + + + 2012-04-30 + 19908.89 + + + 2012-05-31 + 20726.37 + + + 2012-06-30 + 18967.91 + + + 2012-07-31 + 18576.59 + + + 2012-08-31 + 19012.21 + + + 2012-09-30 + 17107.30 + + + 2012-10-31 + 13570.66 + + + 2012-11-30 + 12315.48 + + + 2012-12-31 + 12797.78 + + + 2013-01-31 + 11846.49 + + + 2013-02-28 + 10761.43 + + + 2013-03-31 + 11608.67 + + + 2013-04-30 + 13340.31 + + + 2013-05-31 + 13882.84 + + + 2013-06-30 + 14031.47 + + + 2013-07-31 + 15339.49 + + + 2013-08-31 + 15852.29 + + + 2013-09-30 + 16863.04 + + + 2013-10-31 + 16164.44 + + + 2013-11-30 + 16803.58 + + + 2013-12-31 + 17821.76 + + + 2014-01-31 + 17004.24 + + + 2014-02-28 + 17769.73 + + + 2014-03-31 + 19107.48 + + + 2014-04-30 + 19932.42 + + + 2014-05-31 + 18423.74 + + + 2014-06-30 + 17234.20 + + + 2014-07-31 + 18446.62 + + + 2014-08-31 + 17382.97 + + + 2014-09-30 + 19554.91 + + + 2014-10-31 + 20164.84 + + + 2014-11-30 + 20819.39 + + + 2014-12-31 + 22385.53 + + + 2015-01-31 + 22347.25 + + + 2015-02-28 + 23181.73 + + + 2015-03-31 + 23633.42 + + + 2015-04-30 + 24728.20 + + + 2015-05-31 + 24238.23 + + + 2015-06-30 + 23952.04 + + + 2015-07-31 + 23185.89 + + + 2015-08-31 + 21552.97 + + + 2015-09-30 + 19239.02 + + + 2015-10-31 + 21916.70 + + + 2015-11-30 + 21552.97 + + + 2015-12-31 + 21286.85 + + + 2016-01-31 + 23157.34 + + + 2016-02-29 + 24060.62 + + + 2016-03-31 + 24572.21 + + + 2016-04-30 + 24236.48 + + + 2016-05-31 + 22677.73 + + + 2016-06-30 + 23225.10 + + + + + F000000GTQ + E + Canada + 550011Y0X + US550011Y0X0 + ABCDE + US Dollar + AdventureWorks Cycles + 1.96 + 4630000 + 343268200 + -298800 + Consumer Cyclical + 0.00 + 10217033 + 24.52 + 2009-04-30 + + + E0USA002QK + E + United States + 031101Y0X + US031101Y0X4 + ABCDE + US Dollar + ABC Industries + 1.94 + 6750000 + 339727500 + 0 + Industrials + 0.00 + 31061119 + 19.75 + 2001-03-31 + + + E0USA005TN + E + United States + 257611Y0X + US257611Y0X9 + ABCDE + US Dollar + BCE Industries + 1.66 + 8400000 + 291144000 + 0 + Industrials + 0.00 + 31061119 + -2.38 + 2002-03-31 + + + E0USA00YYW + E + United States + 592681Y0X + US592681Y0X4 + ABCDE + US Dollar + BCE Technologies, Inc. + 1.64 + 1600000 + 286912000 + 0 + Healthcare + 0.00 + 20642093 + 6.41 + 1998-06-30 + + + E0USA010MM + E + United States + 228271Y0X + US228271Y0X6 + ABCDE + US Dollar + Crispy Clear Calls Communications Corp + 1.45 + 4465000 + 252763650 + 0 + Communication Services + 0.00 + 30845100 + 33.95 + 2002-03-31 + + + E0USA015NN + E + United States + 3024U1Y0X + US3024U1Y0X6 + ABCDE + US Dollar + Lots of Electricity Technologies, Inc. + 1.38 + 5150000 + 242050000 + -148000 + Energy + 0.00 + 30951106 + -23.11 + 2001-12-31 + + + E0USA011IJ + E + United States + 4566Q1Y0X + US4566Q1Y0X2 + ABCDE + US Dollar + CDE Technologies + 1.32 + 5000000 + 230100000 + 0 + Technology + 0.00 + 31165133 + 13.46 + 2006-10-31 + + + E0USA011K5 + E + United States + 8731L1Y0X + US8731L1Y0X4 + ABCDE + US Dollar + ABC Communications Inc + 1.18 + 9500000 + 206910000 + 0 + Communication Services + 0.00 + 30845100 + 33.95 + 2005-08-31 + + + E0USA011Q3 + E + United States + 7838J1Y0X + US7838J1Y0X0 + ABCDE + US Dollar + Series of Tubes Communications Corp + 1.14 + 3700000 + 198838000 + 0 + Communication Services + 0.00 + 30845100 + 34.52 + 2009-06-30 + + + E0USA002R1 + E + United States + 032051Y0X + US032051Y0X7 + ABCDE + US Dollar + Pull Those Buttons Press Those Levers Technologies, Inc. + 1.14 + 3415000 + 198548100 + -80000 + Technology + 0.00 + 31167141 + 20.95 + 2005-08-31 + + + + \ No newline at end of file diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.bat b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.bat new file mode 100644 index 0000000..b007e25 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.bat @@ -0,0 +1,2 @@ +npm install & node generate-document.js & pause + diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.js b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.js new file mode 100644 index 0000000..e2e9471 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/generate-document.js @@ -0,0 +1,90 @@ +import pkg from 'windwardrestapi'; +import fs from "fs"; +const {WindwardClient, Template, Xml_10DataSource, OutputFormatEnum} = pkg; + +const config = JSON.parse(fs.readFileSync('./config.json')); + +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); +}; + +async function main() +{ + /** + * Step 1: INITIALIZE THE RESTFUL CLIENT AND SET UP THE TEMPLATE AND DATA SOURCE + * -------------------------------------------------------------------------------------------- + */ + console.log("Initializing Fluent RESTful Client..."); + + // Create a new instance of the client using the RESTful Engine URL provided in the config file + let client = new WindwardClient.WindwardClient(config['restful-engine-url']); + + // Pass the license to the client. The license should be specified in the config file + // If you don't have a license key, you can leave it blank and it will produce output with a watermark. + client.license = config['license']; + + // Display the version info for the restful engine + let version = await client.getVersionInfo(); + console.log("Fluent RESTFul Engine Version: ", version); + + // The datasource document I am sending to the engine to be processed + const dataSourcePath = './files/InvestmentFactSheet.xml'; + + // Create the object and pass in the datasource name, and the data file path. + let dataSource = new Xml_10DataSource('InvestmentFactSheet', undefined, dataSourcePath, undefined); + + //The template file I wish to process. + const templatePath = './files/InvestmentFactSheet.docx'; + + //Create a new template object (to see all the input params check the documentation) + let template = new Template(OutputFormatEnum.PDF, [dataSource], undefined, templatePath, + undefined, undefined, undefined, undefined, undefined, undefined, + undefined, undefined, undefined, undefined, undefined, undefined); + + /** + * Step 2: GENERATE THE DOCUMENT + * -------------------------------------------------------------------------------------------- + */ + console.log("Generating Document..."); + + // Post document to the engine for processing + let document = await client.postDocument(template); + + //check postDocument status and wait if not ready. + while(true) { + await sleep(1000); + let status = await client.getDocumentStatus(document.Guid); + if (status == 302) { + // The document generation is complete, we can now proceed to retrieve the generated document + break; + } + else if (status == 201 || status == 202 || status == 404) { + // The document generation is still in progress, continue waiting + continue; + } + else { + // Potentially have an error, proceed to retrieve the document to get error details + console.error("Error retrieving document. Status code: ", status); + break; + } + } + + /** + * Step 3: RETRIEVE THE DOCUMENT + * -------------------------------------------------------------------------------------------- + */ + console.log("Retrieving Document..."); + + // Retrieve the generated document + let generatedDocument = await client.getDocument(document.Guid); + + // Write the processed document to a file (ensure the file format matches the output format specified in the template) + fs.writeFile("./files/output.pdf", new Buffer.from(generatedDocument.Data, "base64"), function(err){}); + console.log("Generated document saved to /files/output.pdf"); + + // Delete the processed document from the engine + await client.deleteDocument(generatedDocument.Guid); +} + +// Execute the main() method +main(); \ No newline at end of file diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/package.json b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/package.json new file mode 100644 index 0000000..b11e53d --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/package.json @@ -0,0 +1,16 @@ +{ + "name": "here", + "version": "1.0.0", + "description": "", + "main": "test.js", + "type": "module", + "dependencies": { + "windwardrestapi": "*" + }, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.bat b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.bat new file mode 100644 index 0000000..3647449 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.bat @@ -0,0 +1,2 @@ +npm install & node retrieve-metrics.js & pause + diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.js b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.js new file mode 100644 index 0000000..c68ecf5 --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-metrics.js @@ -0,0 +1,90 @@ +import pkg from 'windwardrestapi'; +import fs from "fs"; +const {WindwardClient, Template, Xml_10DataSource, OutputFormatEnum} = pkg; + +const config = JSON.parse(fs.readFileSync('./config.json')); + +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); +}; + +async function main() +{ + /** + * Step 1: INITIALIZE THE RESTFUL CLIENT AND SET UP THE TEMPLATE AND DATA SOURCE + * -------------------------------------------------------------------------------------------- + */ + console.log("Initializing Fluent RESTful Client..."); + + // Create a new instance of the client using the RESTful Engine URL provided in the config file + let client = new WindwardClient.WindwardClient(config['restful-engine-url']); + + // Pass the license to the client. The license should be specified in the config file + // If you don't have a license key, you can leave it blank and it will produce output with a watermark. + client.license = config['license']; + + // Display the version info for the restful engine + let version = await client.getVersionInfo(); + console.log("Fluent RESTFul Engine Version: ", version); + + // The datasource document I am sending to the engine to be processed + const dataSourcePath = './files/InvestmentFactSheet.xml'; + + // Create the object and pass in the datasource name, and the data file path. + let dataSource = new Xml_10DataSource('InvestmentFactSheet', undefined, dataSourcePath, undefined); + + //The template file I wish to process. + const templatePath = './files/InvestmentFactSheet.docx'; + + //Create a new template object (to see all the input params check the documentation) + let template = new Template(OutputFormatEnum.PDF, [dataSource], undefined, templatePath, + undefined, undefined, undefined, undefined, undefined, undefined, + undefined, undefined, undefined, undefined, undefined, undefined); + + /** + * Step 2: REQUEST THE TEMPLATE METRICS + * -------------------------------------------------------------------------------------------- + */ + console.log("Requesting Template Metrics..."); + + // Request metrics from the engine for our template + let metrics = await client.postMetrics(template); + + //check postMetrics status and wait if not ready. + while(true) { + await sleep(1000); + let status = await client.getMetricsStatus(metrics.Guid); + if (status == 302) { + // The metrics request is complete, we can now proceed to retrieve the template metrics + break; + } + else if (status == 201 || status == 202 || status == 404) { + // The metrics request is still in progress, continue waiting + continue; + } + else { + // Potentially have an error, proceed to retrieve the metrics to get error details + console.error("Error retrieving metrics. Status code: ", status); + break; + } + } + + /** + * Step 3: RETRIEVE THE METRICS + * -------------------------------------------------------------------------------------------- + */ + console.log("Retrieving Metrics..."); + + // Retrieve the template metrics + let templateMetrics = await client.getMetrics(metrics.Guid); + + // Write the template metrics to a file + fs.writeFile("./files/metrics.json", JSON.stringify(templateMetrics, null, 2), function(err){}); + console.log("Template metrics saved to /files/metrics.json"); + + // Delete the metrics from the engine + await client.deeleteMetrics(templateMetrics.Guid); +} + +// Execute the main() method +main(); \ No newline at end of file diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.bat b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.bat new file mode 100644 index 0000000..48fe58e --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.bat @@ -0,0 +1,2 @@ +npm install & node retrieve-tag-tree.js & pause + diff --git a/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.js b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.js new file mode 100644 index 0000000..4a5ad2c --- /dev/null +++ b/RESTful Engine/Client Code/v2 API/JavaScript-RESTful-Client-Sample/retrieve-tag-tree.js @@ -0,0 +1,90 @@ +import pkg from 'windwardrestapi'; +import fs from "fs"; +const {WindwardClient, Template, Xml_10DataSource, OutputFormatEnum} = pkg; + +const config = JSON.parse(fs.readFileSync('./config.json')); + +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); +}; + +async function main() +{ + /** + * Step 1: INITIALIZE THE RESTFUL CLIENT AND SET UP THE TEMPLATE AND DATA SOURCE + * -------------------------------------------------------------------------------------------- + */ + console.log("Initializing Fluent RESTful Client..."); + + // Create a new instance of the client using the RESTful Engine URL provided in the config file + let client = new WindwardClient.WindwardClient(config['restful-engine-url']); + + // Pass the license to the client. The license should be specified in the config file + // If you don't have a license key, you can leave it blank and it will produce output with a watermark. + client.license = config['license']; + + // Display the version info for the restful engine + let version = await client.getVersionInfo(); + console.log("Fluent RESTFul Engine Version: ", version); + + // The datasource document I am sending to the engine to be processed + const dataSourcePath = './files/InvestmentFactSheet.xml'; + + // Create the object and pass in the datasource name, and the data file path. + let dataSource = new Xml_10DataSource('InvestmentFactSheet', undefined, dataSourcePath, undefined); + + //The template file I wish to process. + const templatePath = './files/InvestmentFactSheet.docx'; + + //Create a new template object (to see all the input params check the documentation) + let template = new Template(OutputFormatEnum.PDF, [dataSource], undefined, templatePath, + undefined, undefined, undefined, undefined, undefined, undefined, + undefined, undefined, undefined, undefined, undefined, undefined); + + /** + * Step 2: REQUEST THE TEMPLATE TAG TREE + * -------------------------------------------------------------------------------------------- + */ + console.log("Requesting Template Tag Tree..."); + + // Request the tag tree from the engine for our template + let tagTree = await client.postTagTree(template); + + //check postTagTree status and wait if not ready. + while(true) { + await sleep(1000); + let status = await client.getTagTreeStatus(tagTree.Guid); + if (status == 302) { + // The tag tree request is complete, we can now proceed to retrieve the template tag tree + break; + } + else if (status == 201 || status == 202 || status == 404) { + // The tag tree request is still in progress, continue waiting + continue; + } + else { + // Potentially have an error, proceed to retrieve the tag tree to get error details + console.error("Error retrieving tag tree. Status code: ", status); + break; + } + } + + /** + * Step 3: RETRIEVE THE TAG TREE + * -------------------------------------------------------------------------------------------- + */ + console.log("Retrieving Tag Tree..."); + + // Retrieve the template tag tree + let templateTagTree = await client.getTagTree(tagTree.Guid); + + // Write the template tag tree to a file + fs.writeFile("./files/tagTree.xml", new Buffer.from(templateTagTree.Xml, "base64"), function(err){}); + console.log("Wrote output to -> ./files/tagTree.xml\n"); + + // Delete the tag tree from the engine + await client.deleteTagTree(templateTagTree.Guid); +} + +// Execute the main() method +main(); \ No newline at end of file