Sha256: 00446e049652633043d84b7534ed5e6dc3530fe1b0d2945e317effe3b7301f9b

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

app.factory('Documentation', function($http) {
  return {
    getIndex: function() {
      return $http.get('api/index.json', { cache: true });
    },
    getController: function(version, name) {
      return $http.get('api/' + version + '/resources/' + name + '.json', { cache: true });
    },
    getType: function(version, name) {
      return $http.get('api/' + version + '/types/' + name + '.json', { cache: true });
    }
  };
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
praxis-0.18.1 lib/api_browser/app/js/factories/Documentation.js
praxis-0.18.0 lib/api_browser/app/js/factories/Documentation.js
praxis-0.17.1 lib/api_browser/app/js/factories/Documentation.js
praxis-0.17.0 lib/api_browser/app/js/factories/Documentation.js