You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. This is the third discussion I am creating for functionality that I want to be added to the LoopBack CLI & I would like to know if it is possible to have this feature in the CLI.
I want a command that would allow creating a custom route for a particular data source & repository. At this point, I have created a script that uses string manipulation to create a new controller that creates this custom route I require.
Here is the link to an example app that has the script added & has a custom controller added.
At this point, one can use npm run custom & pass arguments to create the custom route.
Example:
npm run build && npm run custom -- modelName="todo" -- existingRepo="TodoRepository" -- httpMethod="get" -- newMethod="ut" -- params="fza:string,hst:string,ht:string" -- sqlQuery="SELECT * from Todo"
Is it possible to have a feature like this added to the LoopBack 4 CLI? Though I don't have much experience contributing to any OS project I would love to try contributing to this feature.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. This is the third discussion I am creating for functionality that I want to be added to the LoopBack CLI & I would like to know if it is possible to have this feature in the CLI.
I want a command that would allow creating a custom route for a particular data source & repository. At this point, I have created a script that uses string manipulation to create a new controller that creates this custom route I require.
Here is the link to an example app that has the script added & has a custom controller added.
At this point, one can use
npm run custom
& pass arguments to create the custom route.Example:
npm run build && npm run custom -- modelName="todo" -- existingRepo="TodoRepository" -- httpMethod="get" -- newMethod="ut" -- params="fza:string,hst:string,ht:string" -- sqlQuery="SELECT * from Todo"
Is it possible to have a feature like this added to the LoopBack 4 CLI? Though I don't have much experience contributing to any OS project I would love to try contributing to this feature.
Link to the script.
I'll be really grateful for the response.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions