hunk.code_window:     get: function (id, params, callback) {
         $http({
           method: 'GET',
           url: API_ENDPOINT_ENDPOINTS + '/' + EndpointProvider.endpointID() + '/services/' + id + '/logs',
           params: {
             'stdout': params.stdout || 0,
             'stderr': params.stderr || 0,
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:         url: API_ENDPOINT_ENDPOINTS + '/' + EndpointProvider.endpointID() + '/docker/services/' + id + '/logs',
  
hunk.file_path: app/rest/docker/serviceLogs.js
hunk.type: replace
file: angular.module('portainer.rest')
  .factory('ContainerLogs', ['$http', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function ContainerLogsFactory($http, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
    'use strict';
    return {
      get: function (id, params, callback) {
        $http({
          method: 'GET',
          url: API_ENDPOINT_ENDPOINTS + '/' + EndpointProvider.endpointID() + '/containers/' + id + '/logs',
          params: {
            'stdout': params.stdout || 0,
            'stderr': params.stderr || 0,
            'timestamps': params.timestamps || 0,
            'tail': params.tail || 'all'
          }
        }).success(callback).error(function (data, status, headers, config) {
          console.log(error, data);
        });
      }
    };
  }]);
  