Newer
Older
/**
* Adapters will automatically be used for API/EmberData interaction, using adapters which
* are have the same name as the model, with a fallback to Application adapter
* @module adapters
*/
import Ember from 'ember';
import RESTAdapter from 'ember-data/adapters/rest';
Mathis Neumann
committed
import ENV from 'iobserve-ui/config/environment';
/**
* basic adapter for non-system based APIs (currently just System)
*
* @class BaseAdapter
* @extends DS.RESTAdapter
*/
/**
* the hostname of the api
*
* @property host
* @type {String}
*/
Mathis Neumann
committed
host: ENV.APP.API_ROOT,
/**
* the namespace is a path prefix, used as a version prefix
* @property host
* @type {String}
* @default v1
*/
/**
* the injected session which stores the system id
* @property host
* @type {Session}
* @readonly
*/
session: Ember.inject.service()
});