PhilipSkinner / elemental-lowcode

Elemental lowcode development platform.
MIT License
113 stars 17 forks source link

Integrations query variables - rework #128

Closed PhilipSkinner closed 2 years ago

PhilipSkinner commented 2 years ago

The current design assumed that query and body params are going to be configured and identified within the same collection, this is incorrect.

The current structure for configuring query parameters is:

{
  "variables": [
    {
      "name": "id",
      "type": "queryParam",
      "description": "The ID of the post to fetch"
    }
  ]
}

This needs to change to the following:

{
  "queryParams": [
    {
      "name": "id",
      "description": "The ID of the post to fetch",
      "required" : true
    }
  ]
}

Implement this new structure, and also implement the new {{required}} query parameter logic so optional query parameters can be constructed.

PhilipSkinner commented 2 years ago

Done, pushed into latest.