Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle jsonrpc context #9

Open
fiddur opened this issue Mar 17, 2015 · 0 comments
Open

Handle jsonrpc context #9

fiddur opened this issue Mar 17, 2015 · 0 comments

Comments

@fiddur
Copy link
Contributor

fiddur commented Mar 17, 2015

Context specification needs to be better before implementing this correctly.

We have an untested implementation commented out in 1dc552c

The idea is to be able to make a context something like this:

"context": {
  "webshopApi": {
    "type": "prerequisite",
    "description": "API backend URL for jsonrpc"
  },
  "article": {
    "type": "jsonrpc",
    "endpoint": "{{context.webshopApi}}",
    "method": "Article.get",
    "params": ["{{query.article}}", ["name", "url", "description"]]
  }
}

…this would require query (GET-data) to be placed on mustache rendering context as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant