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

Enchancement of the Endpoint DSL to support multiple path variables or combination of path variable and literal within single path segment #3747

Open
limpid-kzonix opened this issue May 7, 2024 · 0 comments

Comments

@limpid-kzonix
Copy link

limpid-kzonix commented May 7, 2024

The details are described here - https://softwaremill.community/t/how-to-handle-extraction-of-two-or-more-variables-within-single-path-segment/367/1

  • multiple path variables and literals in the same path segment, e.g., /people/{firstName}-{lastName}/SSN
  • path variable and literal within the same path segment, e.g. ,people/{firstName}-some-literal/SSN or /people/some-literal-{firstName}/SSN

The main objective is to partially support the capabilities described by RFC-6570 URI template spec.

Many other frameworks, including Micronaut, Spring, Quarkus, ktor, dotnet, actix-web, implement the URI template specification in some way. In the Scala ecosystem, we do not have the support of such things in any framework or library.

This limitation prevents users from defining the Resource-Oriented API (specifically custom methods of API-136) with good OpenAPI spec
image

Imagine Tapir becoming the Chuck Norris of Scala routing 😎, leaving all other frameworks in the dust with this killer feature. Plus, it would totally align with the cool kids in other ecosystems 🔥

💥 How awesome would that be? 💥

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

No branches or pull requests

1 participant