Skip to content

abulte/ckanext-countapicalls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CKAN Count API Calls Extension

Status: Development

CKAN Version: 1.XXX

Overview

A CKAN extension for counting and storing in DB the number of call to the "show" API for a given dataset (package).

Installation

  1. Install the extension as usual, e.g. (from an activated virtualenv):

     $ pip install -e  XXX
    
  2. Run the following command from src/ckanext-countapicalls to set up the required database tables (of course, altering the --config option to point to your site config file)::

     paster initdb --config=../ckan/development.ini
    
  3. Restart CKAN (e.g. by restarting Apache) <- do we need that ??

  4. Make some calls to the API and watch the DB table 'api_package_stats', it should contain stats about your API hits.

Testing

XXX

Future

XXX

About

Simple API dataset hits counter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages