Wouldn’t a restlet be better suited to this though...
# suitecommerce
t
Wouldn’t a restlet be better suited to this though?
v
Yes, I agree that a restlet would be the perfect choice for this scenario, but I've been specifically asked to check if services from SC extensions can be reused by an external source. Maybe we can just move all our business logic into restlets and then call the restlets from respective sources? (via SC backend models and via an external source)
t
Yeah that should definitely be possible and is probably preferable to using SC Models as an external API
Are you aware of how you’d use the restlet? You can use
nlapiResolveURL
to get the URL and then
nlapiRequestURL
to make the request
👍 1
I think there would be extra overhead doing this though
v
There would be, I'm afraid, But glad to know that we have that option on the table at least.
Anyway, really appreciate the help @TheAntman Thank you 🙂