n040661 / restsql-sdk Goto Github PK
View Code? Open in Web Editor NEWThis project forked from restsql/restsql-sdk
restsql documentation, HTTP API explorer, javadoc, examples
Home Page: http://restsql.org
License: MIT License
This project forked from restsql/restsql-sdk
restsql documentation, HTTP API explorer, javadoc, examples
Home Page: http://restsql.org
License: MIT License
README.txt (24-Mar-2017) restSQL SDK Deployment Guide Project website is at http://restsql.org. Distributions at http://restsql.org/dist. Release history at http://restsql.org/doc/ReleaseHistory.html. Source code hosted at http://github.com/restsql. ------------------------------------------------------------------------------- Structure and Distributions restSQL source code is contained in three eclipse projects: 1. restsql (service and core framework) 2. restsql-sdk (documentation, HTTP API explorer, javadoc, examples) 3. restsql-test (test framework, test cases) restSQL binary distributions contain three libraries: 1. restsql-{version}.jar (core framework only) 2. restsql-{version}.war (service and core framework, 3rd party dependencies) 3. restsql-sdk-{version}.war {sdk) restSQL source distributions consist of one jar: 1. restsql-{version}-src.jar (service and core framework) restSQL docker images: 1. restsql/service - service and core framework 2. restsql/service-sdk - service and core framework + sdk 3. restsql/mysql-sakila - MySQL 5.7 + Sakila + restsql-test extensions ------------------------------------------------------------------------------- Versions The restsql and restsql-sdk versions are found in the jar and war's META-INF/MANIFEST.MF. It is also found in the the source tree in restsql/build.properties and restsql-sdk/build.properties in the property build.version. ------------------------------------------------------------------------------- Installing restSQL SDK Requirements: JEE Container, JAR tool, MySQL or PostgreSQL, Web Browser Database: The HTTP API Explorer requires access to an extended sakila database (http://dev.mysql.com/doc/sakila/en/sakila.html). It is extended for the restsql-sdk with new tables and data. Bash and Windows batch scripts are provided to create the base and extended database for MySQL and for PostgreSQL. The bash script is restsql-sdk/database/<database>/create-sakila.sh and the Windows batch script is restsql-sdk/database/<database>/create-sakila.bat, where database is either mysql or postgresql. You will need to change the user and password variables in the beginning of the script to an account that has database and table creation privileges. Install restsql WAR mode (see restSQL README.txt). Deploy: Extract restsql-sdk-{version}.war to your container's webapps directory, e.g. /usr/local/tomcat/webapps/restsql-sdk. Enable directory listings in your app container's config. For example for Tomcat, edit $TOMCAT_HOME/conf/web.xml section for the DefaultServlet or add the following to restsql-sdk/WEB-INF/web.xml, setting the directory listing value to true: <servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> The SDK war contents are: restsql-sdk/ api-explorer/ database/ defaults/ doc/ examples/ javadoc/ META-INF/ wadl/ WEB-INF/ Note that the restsql-sdk war contains only static web content. You can either change restSQL's sqlresources.dir to point to the SDK's sqlresources path, or copy the SDK's resources to the existing restSQL's sqlresources.dir (default is <code>/etc/opt/restsql/sqlresources</code>). Copying is easier: cp /usr/local/tomcat/webapps/restsql-sdk/examples/sdk /etc/opt/restsql/sqlresources/sdk Restart the container or use your preferred deloyment method. To see if the resources are available, check the restSQL resource listing in the console, at http://host:port/restsql/res/. You should see six resources with names like sdk.Country, sdk.film.Film, etc. Troubleshooting: The HTTP API Explorer requires access to a restsql service instance. If you have not deployed restsql to the same host/port as the SDK and to the location /restsql, then you will need to make one small tweak. Change two Javascript variables in restsql-sdk/api-explorer/index.html. Here is an example: var restsqlHost = "http://somehost:8080"; var restsqlBaseUri = "/restsql-0.7"; ------------------------------------------------------------------------------- License restSQL is licensed under the standard MIT license. Refer to the LICENSE.txt and CONTRIBUTORS.txt in the distribution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.