8000 Qubit without JSON-RPC? · Issue #92 · andogq/qubit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Qubit without JSON-RPC? #92
Open
Open
@akx

Description

@akx

For client implementation simplicity, I'd like to use Qubit without having to use JSON-RPC. In other words:

  • #[handler(query)] fn hello_world() would map to GET /rpc/hello_world with query-string parameters, if any
  • #[handler(mutation)] fn hello_world() would map to POST /rpc/hello_world with a JSON body

... and, well, that's it I guess? A generated browser client could just use native fetch().

I suppose this wouldn't be too difficult to implement, but I wouldn't want to fork qubit, or work on something that would not be accepted to core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0