Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1012 - 1014 of 2152)

Ticket Resolution Summary Owner Reporter
#1209 fixed sort out rendering of formalchemy package preview kindly

Reported by kindly, 3 years ago.

Description

Got broken due to the moderated edits changes #1141.

Need to make sure preview works.

#1208 fixed Webstore: a datastore with web API rgrp rgrp

Reported by rgrp, 3 years ago.

Description
  • SQLite based
  • Use Cyclone for async http server on top with auth
  • Designed to not be specific to CKAN or anything else

Current code is here: https://github.com/okfn/webstore.

API Spec

Read

Two basic ways to query::

    GET: /{owner}/{db-name}/?sql=...
    GET: /{owner}/{db-name}/?table=...&attr=value&attr=value&limit=...

Returns::

  {
      u'keys': [u'id', u'name'],
      u'data': [
          [1, u'jones'],
          [u'aaa', u'jones']
          ]
  }

Write

POST to::

/{owner/{database}/{table}

Payload is json data structured as follows::

{

unique_keys: [list of key attributes] data: {dict of values}

}

Authentication and Authorization

Authentication: use basic auth header.

Authorization:

  • Default: all read, owner can write
  • Restricted: owner can read and write, everyone can do nothing

Possible future: config file can specify a python method (TODO: method signature)

Integration with Other Systems

TODO: Specify how to delegate authenatication to user database in some other system.

#1207 fixed ckanclient.package_entity_get should raise more specific exception dread dread

Reported by dread, 3 years ago.

Description

When package does not exist in ckan catalogue, ckanclient.package_entity_get should raise more specific exception, such as CkanNotFoundError? instead of generic CkanApiError?.

Note: See TracQuery for help on using queries.