code: function (action, resource, options) {
  
              var params = {};
  
              if (this.$.useSafeHttpMethods) {
                  if (action === RestDataSource.METHOD.DELETE) {
                      params.method = "delete";
                  } else if (action === RestDataSource.METHOD.PUT) {
                      params.method = "put";
                  }
              }
  
              if (resource instanceof Collection) {
                  _.defaults(params, resource.getQueryParameters(action), resource.getRoot().$context.getQueryParameters());
                  if (resource.$.query) {
                      _.defaults(params, this.getQueryComposer().compose(resource.$.query));
                  }
              }
  
              return params;
          }
docs: *
  global query parameter for each REST action
  @param action {String} Rest action [GET, PUT, DELETE, POST]
  @param resource {js.data.Model|js.data.Collection} model or collection which gets loaded
  @param options {Object} options for the request
  @return {Object}