Swagger based router #358
wildwind123
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was thinking about routing and etc ...
I think approach code generate from swagger spec will be useful and fast.
Example this is swagger spec (this example can copy and see in swagger editor )
From this spec will be generated this files
And file /root.vue will contain this content, and can be modify, can add header footer etc
user.vue
file foredit/user/[username].vue
etc ...
And for this approach have more idea. Example if path required auth swagger authentication
will generated middleware, where can write logic for check auth etc
Beta Was this translation helpful? Give feedback.
All reactions