Best place to put http api crud functions


Whats the best place to put api http crud functions, in services or providers or models. How would you architect in a DRY way. An example code would be appreciated. Thanks


Make a Service/provider.

Similar to Angular 1, you would create a service class that would handle all of the http request and jsut feed it URL