How do i set swagger config using inheritance for controllers #2457
shivanshtalwar0
started this conversation in
General
Replies: 2 comments 2 replies
-
Just add see you |
Beta Was this translation helpful? Give feedback.
1 reply
-
No wait maybe i haven't made myself clear, both base and child controller have @controller decorator i am asking how do i set @summary, @returns which is swagger based decorator which can be different for different child controller based on different prisma model and repository |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am well aware that controllers in Tsed support inheritance but I want to to make generic base class which would contain basic rest endpoint implementation consuming repository as a constructor argument from child controller but what i am not sure is how would i set generic swagger config for those rest methods with decorators
for example
@Romakita or maybe if you have some other nifty way to do this i am all ears. Thanks for creating Tsed lots of love!
Beta Was this translation helpful? Give feedback.
All reactions