Minimal API and Controllers support #167
Replies: 2 comments 1 reply
-
Hi @lucafabbri thanks for the kind words and the feedback. I've started a similar project with a stated goal of getting an experience similar to FastAPI in Python. Feel free to check it out! https://github.com/jchristn/swiftstack And if it isn't a good fit, I'd always love PRs that help make this library better in generalized/horizontal ways. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hi @jchristn it took a while as I was a little busy but in the end I managed to create an extension for WatsonWebserver. The Initial version is here https://github.com/lucafabbri/HostedWatson check it out ;) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Joel,
I'm moving some local network rest api service to Watson WebServer (really great project, thanks for this).
In order to use a similar approach to the one we use for asp.net I decided to develop some features on top of Watson. Let's say "a minimal api like" declaration of endpoints as well as controllers with actions.
I'm just curious to understand if those feature might be of any interest for Watson. If yes I'll be happy to send you a PR to evaluate the idea and defining the boundaries (e.g. parameters binding can be extended with some common conventions and edge cases)
Here after an example on how it should look:
Kindly
Beta Was this translation helpful? Give feedback.
All reactions