In my Angular2 application I use services which call a REST API like this from http://localhost:22222/app/webresources/entity..
I want to set part of this URL just one time and call it from the services which I need.
I think I need to create an Interface which has a constant URL, but is it possible to implement this in a service?