smartApp with multiple files

I would to organize my webservices smartApp in multiple files.

I tried defining parent and child smart Apps. However, I am not able to Oauth with my parent App.

I appreciate any suggestion for organizing my smart App.

So you are saying that you want a parent app that is some sort of API endpoint that also has the ability to spawn its own children that can be accessed from that parent?

1 Like

yes.

in the parent I would like to have the below code:

mappings {
path("/doSomething") {
action: [
POST: “requestedAction”
]
}
}

def requestedAction()
{
def theChild = findChildAppByName(“myFavoriteChild”)
theChild.specificAction()
}

That should work:)