Implement JSONP (callbacks) in REST API
---------------------------------------
Key: GEOS-3591
URL: http://jira.codehaus.org/browse/GEOS-3591
Project: GeoServer
Issue Type: New Feature
Components: REST
Affects Versions: 2.0-RC2
Reporter: Ariel Núñez
Assignee: Andrea Aime
Priority: Minor
JSONP is script tag injection, passing the response from the server in to a
user specified function
Example implementation (pseudocode)
http://example.com/geoserver/rest/function.json?callback=myFunc
>>> outputData = process(request)
>>> wrapper = request.GET['callback']
>>> output = wrapper + "(" + data + ")"
>>> print output
myFunc({"name" : "Remy", "id" : "10", "blog" : "http://remysharp.com"});
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel