Pylons / pyramid_rpc

RPC plugins for pyramid. XML-RPC, JSON-RPC, etc.
https://docs.pylonsproject.org/projects/pyramid-rpc/en/latest/
Other
27 stars 20 forks source link

JSON-RPC methods should be able to be invoked using HTTP GET #13

Closed josephsu closed 11 years ago

josephsu commented 13 years ago

Defined in "JSON-RPC over HTTP" secion 3.5: http://groups.google.com/group/json-rpc/web/json-rpc-over-http

Current implementation does not support calling RPC over HTTP GET

mmerickel commented 13 years ago

Is there a compelling reason to support this? pyramid_rpc doesn't actually attempt to implement much of the "JSON-RPC over HTTP" spec. All responses are 200 OK right now. The spec is actually only a proposal and I have seen no activity on it for months.

Is this a feature that you have seen implemented in other JSON-RPC clients/servers? If it is I will think about adding it, but to date I have not seen a single server implementation supporting this API.

josephsu commented 13 years ago

HTTP GET is needed if people want to invoke JSON-RPC methods by doing JSONP.

Bugzilla's JSON-RPC interface supports HTTP GET. It's documented at
http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/WebService/Server/JSONRPC.html

django-json-rpc has implemented calling JSON-RPC over HTTP GET. you may check https://github.com/samuraisam/django-json-rpc

mmerickel commented 13 years ago

Thanks for the links. I'll add this to the TODO list.

mmerickel commented 11 years ago

Added GET support in 2037884.