SenseTecnic / ckanext-wotkit

Extensions to the CKAN open data portal for WoTKit integration
0 stars 0 forks source link

Proxy WoTKit API through CKAN #3

Open mblackstock opened 11 years ago

mblackstock commented 11 years ago

Lets do this at first if it is easy. I think this will need to be reworked later -- it doesn't quite 'smell' right.

For GET requests (sort of a short cut).

GET    {host}/api/3/action/wotkit?url={wotkit-resource}

Where WoTKit resource is the part of the WoTKit URL after the {wotkit}/api/'

and/or

POST {host}/api/3/action/wotkit

{
    url: {wotkit-url}
    method: get|put|post|delete
    data: {json or form data expected by WoTKit}
}