Skip to content
Kalimaha edited this page Nov 10, 2014 · 26 revisions

Welcome to the WDS wiki!

WDS acronym stands for Web Data Server. The purpose of this project is to provide data through REST services from different datasources and in different formats. WDS project is composed by two different modules:

  • wds-core
  • wds

The user is required to know the data model in order to be able to query the selected datasource.

WDS Core

This module contains all the base libraries that implement the business logic of WDS: constants, beans, JDBC access, data manipulation and so on.

WDS

WDS is a web application that exposes all the REST services needed to extract and present data from different datasources and in different formats such as JSON, XML, HTML, Excel and so forth.

Datasources Management

The datasources made available by WDS are configured through JSON files contained in the /src/main/webapp/datasources folder. Each file in this directory is structured as a JSON array of objects as per the example below:

[
    {
        "id": "MYDATASOURCE",
        "driver": "PostgreSQL",
        "url": "jdbc:postgresql://127.0.0.1:5432/my_datasource",
        "dbName": "my_db",
        "username": "my_username",
        "password": "my_password"
    }
]

Each object in the array must contain the following elements:

Name Description Example
id Unique name for the datasource. This name will be used in the REST services to access the DB. MYDATASOURCE
driver Type of connector to be used. PostgreSQL or SQLServer2000
url JDBC string for the datasource. jdbc:postgresql://127.0.0.1:5432/my_datasource
dbName The name of the database as is in the DBMS. my_db
username Username to access the DBMS. my_username
password Password to access the DBMS. my_password
Clone this wiki locally