Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

NuCivic/dkan-es6-data-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DKAN Backend for es6

Fetch and query DKAN data from its API.

Quickstart

import DKAN from 'dkan-es6-data-backend';
let dataset = {
  endpoint: 'http://demo.getdkan.com/api',
  url: 'http://demo.getdkan.com/api/3/action/datastore_search?=&resource_id=db114e1f-cf44-4cef-b4a7-b2451b039fb1',
  id: 'db114e1f-cf44-4cef-b4a7-b2451b039fb1'
};

DKAN.query({size: 10, from: 0}, dataset).then(data => {
    // data is formatted:
    {
      fields: ['field1', 'field2', ...],
      records: [{ field1: 'value'}, ...]
    }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published