/
Listing Data Sources

Listing Data Sources

Overview

Views for a collection can be selected by specifying the collection that is desired. This list of collections is paginated and can be adjusted using the limit and offset parameters. 

List the Data Sources

 

Data Sources
http://{host}/rds/api/catalog/{collection}


Data Sources Output
{
    "id": "test",
    "name": "Test Collection",
    "description": "A collection used for testing RDS",
    "datasources": [
       {
   			"id": "datasource1",
   			"name": "An example data source.",
			"description": "An example data source that is used for the Rich Data Services documentation.",
			"provenance": "Metadata Technology North America, 2016",
    		"public": true
		},
 		{
            "id": "datasource2",
            "name": "A second example data source",
            "public": true
        }
    ],
    "info": {
        "limit": 10,
        "offset": 0,
        "more": false
    }
}


Limit to One Data Source
http://{host}/rds/api/catalog/{collection}?limit=1


Limit One Output
{
    "id": "test",
    "name": "Test Collection",
    "description": "A collection used for testing RDS",
    "datasources": [
        {
    		"id": "datasource1",
    		"name": "An example data source.",
			"description": "An example data source that is used for the Rich Data Services documentation.",
			"provenance": "Metadata Technology North America, 2016",
    		"public": true
		}
    ],
    "info": {
        "limit": 1,
        "offset": 0,
        "more": true
    }
}


Limit to One Data Source Offset One
http://{host}/rds/api/catalog/{collection}?limit=1&offset=1


Limit and Offset Output
{
    "id": "test",
    "name": "Test Collection",
    "description": "A collection used for testing RDS",
    "datasources": [
        {
            "id": "datasource2",
            "name": "A second data source",
            "public": true
        }
    ],
    "info": {
        "limit": 1,
        "offset": 1,
        "more": false
    }
}