Consuming endpoint from CMS module

Hi all.

I have an endpoint placed on my site module that I want to consume from a class that implements RepositoryJob in my cms module…Is there a better practice than just do a call via url.openConnection()???

Best regads.

If you want to call that endpoint, then yes you need to treat it as an external url. If you just want to use the logic in the endpoint, then move that logic to a separate class and use that class in your endpoint and in your job.

Thanks Jasper!