Skip to content
Guido Barbaglia edited this page Dec 18, 2013 · 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.

Add a Datasource

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"
    }
]
Clone this wiki locally