Skip to content

Expand Open API capabilities: Allow argument dependencies, input/output mapping and per Parameter Multi View calls #494

@DiegoPino

Description

@DiegoPino

What?

To allow more flexibility in API building we need to implement custom features outside of the base https://spec.openapis.org/oas/v3.1.1.html specs.

WE need:

  • For Require parameters that are of type enumeration
    • Input (means API argument) to different output (arguments passed to the views) mapping. Similar in code as what we do for UUIDs to NODES but in this case One value to another
    • Allow also Views to be called when there argument has a value, but without having to pass anything to the View.
  • On VIEWS exposed argument mapping, being able to make some conditional. A good example is a pager. Under a certain other argument, the pager might refer to one view, under another to a different view

There might be more needs, but this is a good start.

Ideally also, IF a template is being used by an Exposed API endpoint, provide a OpenAPI special "preview" input space. So the user can simulate the Open API and see how the Template renders.

Metadata

Metadata

Assignees

Labels

OpenAPIa small crack in the matrixTwigTwig template processingenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions