index.js
function(accountInfo) {
    var self = this,
      rpcs = this.getRPCs(),
      schema = {
        'name' : this.getName(),
        'title' : this.getTitle(),
        'description' : this.getDescription(),
        'icon' : this.getIcon(accountInfo),
        'auth' : this.getAuth(),
        'rpcs' : this.getRPCs(),
        'url' : this.getBPMAttr('url'),
        'actions' : this.formatActions(),
        'tags' : this.getTags()
      },
      authType = this.getAuth().strategy;

    // attach auth binders
    if (authType == 'oauth') {
      schema.auth.scopes = this.getConfig().oauth.scopes || [];
      schema.auth._href = self.options.baseUrl + '/rpc/oauth/' + this.getName() + '/auth';
    } else if (authType == 'issuer_token') {
      schema.auth._href = self.options.baseUrl + '/rpc/issuer_token/' +  this.getName() + '/set';
    }

    schema.auth.properties = this.getAuthProperties();

    return schema;
  }
function(accountInfo) {
    var self = this,
      rpcs = this.getRPCs(),
      schema = {
        'name' : this.getName(),
        'title' : this.getTitle(),
        'description' : this.getDescription(),
        'icon' : this.getIcon(accountInfo),
        'auth' : this.getAuth(),
        'rpcs' : this.getRPCs(),
        'url' : this.getBPMAttr('url'),
        'actions' : this.formatActions(),
        'tags' : this.getTags()
      },
      authType = this.getAuth().strategy;

    // attach auth binders
    if (authType == 'oauth') {
      schema.auth.scopes = this.getConfig().oauth.scopes || [];
      schema.auth._href = self.options.baseUrl + '/rpc/oauth/' + this.getName() + '/auth';
    } else if (authType == 'issuer_token') {
      schema.auth._href = self.options.baseUrl + '/rpc/issuer_token/' +  this.getName() + '/set';
    }

    schema.auth.properties = this.getAuthProperties();

    return schema;
  }
function ( accountInfo ) { var self = this , rpcs = this . getRPCs ( ) , schema = { 'name' : this . getName ( ) , 'title' : this . getTitle ( ) , 'description' : this . getDescription ( ) , 'icon' : this . getIcon ( accountInfo ) , 'auth' : this . getAuth ( ) , 'rpcs' : this . getRPCs ( ) , 'url' : this . getBPMAttr ( 'url' ) , 'actions' : this . formatActions ( ) , 'tags' : this . getTags ( ) } , authType = this . getAuth ( ) . strategy ; // attach auth binders if ( authType == 'oauth' ) { schema . auth . scopes = this . getConfig ( ) . oauth . scopes || [ ] ; schema . auth . _href = self . options . baseUrl + '/rpc/oauth/' + this . getName ( ) + '/auth' ; } else if ( authType == 'issuer_token' ) { schema . auth . _href = self . options . baseUrl + '/rpc/issuer_token/' + this . getName ( ) + '/set' ; } schema . auth . properties = this . getAuthProperties ( ) ; return schema ; }
Creates a json-schema-ish 'public' view of this Pod
Creates a json - schema - ish public view of this Pod