Open outSH opened 9 months ago
@outSH Sorry for the slow response! I agree with all the points!
My only thing to add is that we should make sure to test this very thoroughly with different platform builds to make sure that tooling can deal with it. It's been a few years since I last tried to do decorators (back when it was beta) and back then there was always something in the build tooling that would not play well with it (looking at you webpack/rollup/etc)
Is your feature request related to a problem? Please describe.
getOrCreateWebServices()
.Describe the solution you'd like
Example
This would create new
IWebServiceEndpoint
and add it to decorated method class fieldthis.endpoints
(that can later be used by cmd-api-server to create an actual endpoint).More benefits:
@WebServiceAccess
can be used to define common access control across protocols (e.g. websockets doesn't limit access at the moment).Describe alternatives you've considered
IWebServiceEndpoint
with default structure (reused by most endpoints).Additional context
@petermetz @takeutak @izuru0 @jagpreetsinghsasan @VRamakrishna @sandeepnRES This is just a generic idea, please let me know what you think and then I can work on PoC to make sure it works as expected.