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

POST endpoint should allow global parameters #223

Closed
3 tasks
matteofigus opened this issue Apr 5, 2016 · 0 comments
Closed
3 tasks

POST endpoint should allow global parameters #223

matteofigus opened this issue Apr 5, 2016 · 0 comments

Comments

@matteofigus
Copy link
Member

Current behaviour for making a request is making a POST to the registry's base url with a payload like

{
  "components": [
    { "name": "component", "parameters": { "domain": "it" }},
    { "name": "component2", "parameters": { "domain": "it", "hello": "world" }}]
}

We want, when multiple component requires the same parameters, to be able to pass this parameters globally. Example (The following example aims to be equivalent to the previous one):

{
  "parameters": { "domain": "it" },
  "components": [
    { "name": "component"},
    { "name": "component2", "parameters": { "hello": "world" }}]
}

Acceptance:

  • when a global parameter is specified, it is used by all the components no exclusion
  • when a global parameter is specified and component includes the same parameter with different value, the global parameter is overwritten for that component
  • when both global and component parameters are specified, both are going to be used (see example for hello parameter)
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