API Docs for: 0.25.0
Show:

File: addon/models/node-link.js

import DS from 'ember-data';

import OsfModel from './osf-model';

/**
 * @module ember-osf
 * @submodule models
 */

/**
 * Model for OSF APIv2 node links. This model may refer to one of several API endpoints. It may be queried directly,
 *  or accessed via relationship fields.
 * For field and usage information, see:
 * * https://api.osf.io/v2/docs/#!/v2/Node_Links_List_GET
 * * https://api.osf.io/v2/docs/#!/v2/Node_Links_Detail_GET
 * * https://api.osf.io/v2/docs/#!/v2/Registration_Node_Links_List_GET
 * * https://api.osf.io/v2/docs/#!/v2/Registration_Node_Links_Detail_GET
 * @class NodeLink
 */
export default OsfModel.extend({
    targetNode: DS.belongsTo('node')
});