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

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

Open
DiegoPino opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request OpenAPI a small crack in the matrix Twig Twig template processing
Milestone

Comments

@DiegoPino
Copy link
Member

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.

@DiegoPino DiegoPino self-assigned this Feb 28, 2025
@DiegoPino DiegoPino added this to the 1.5.0 milestone Feb 28, 2025
@DiegoPino DiegoPino added enhancement New feature or request Twig Twig template processing OpenAPI a small crack in the matrix labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OpenAPI a small crack in the matrix Twig Twig template processing
Projects
None yet
Development

No branches or pull requests

1 participant