Allow overriding Tapir endpoint inputs created by Caliban's HttpInterpreter #2185
Labels
adapters
Issue related to HTTP adapters
enhancement
New feature or request
good first issue
Good for newcomers
server
Issue related to caliban server
Hi,
I want to override the path prefix of Caliban's Tapir endpoints made by
HttpInterpreter
, but it seems there's no way to do it with existing HttpInterpreter implementation.Ultimately I want to run a
NettyZioServer
providing tapir endpoints directly and control the paths my APIs go into.Example:
I've originally asked this question in Caliban's Discord channel here: https://discord.com/channels/629491597070827530/633200096393166868/1227766362714275922
Pierre answered that we could implement some intermediate case class within HttpInterpreter to allow overriding endpoint inputs:
https://discord.com/channels/629491597070827530/633200096393166868/1227772627758612550
I'm happy to do this myself once I get time (probably over the weekend), I initially thought of feeding in the user's EndpointInput replacing the
.in(extractFromRequest(identitiy))
to allow users to decide the rest of the inputs they want.Please let me know if you otherwise have any ideas or suggestions.
Appreciate your time 🙏
The text was updated successfully, but these errors were encountered: