Changes between Initial Version and Version 1 of Ticket #1437


Ignore:
Timestamp:
11/01/11 18:51:36 (2 years ago)
Author:
dread
Comment:

This can be fixed with one line of code, so I'm doing it for release 1.5.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1437

    • Property Owner set to dread
    • Property Status changed from new to assigned
    • Property Type changed from enhancement to defect
    • Property Milestone changed from ckan-v1.6 to current-ckan-sprint-2011-11-07
  • Ticket #1437 – Description

    initial v1  
    11Action API needs JSONP support - be able to return responses encapsulated in a function of a supplied name. This is important for remote sites running javascript to interact with a CKAN site. 
    22 
    3 Specifying the callback parameter is the way we've achieved JSONP with the RESTful and Search APIs. It would like like this: 
     3Specifying the callback parameter is the way we've achieved JSONP with the RESTful and Search APIs. It should work like this: 
    44{{{ 
    55curl http://test.ckan.net/api/action/package_show?callback=jsoncallback -d '{"id": "fd788e57-dce4-481c-832d-497235bf9f78"}' 
    66}}} 
     7 
    78Or maybe the callback should be specified in the payload in the context or data_dict? 
    89