Based on a particular workspace, you can request its entities by the following REST operation: http://server.sociocortex.com/api/v1/workspaces/107yhdgc7q9u6/entities
Again, sc-angular provides methods wrapping those kind of REST calls as follows:
scData.Entity.queryByWorkspace({id: '107yhdgc7q9u6'}, function (entities) { for (var i = 0; i < entities.length; i++) { console.log(entities[i].name); } });
Requesting a workspace's entity types, an entity type's entities, or an entity type's attribute definitions works analogously.
Task 2
Change the upper function above, to find the entity with an id: 7bgmtm6lvrya and output its name to the console. The respective workspace id is: 28otxru3bnn1
// Hint: You should use console.log() to output to the console
// Hint: You can solve this problem on two ways
(function(){
user input expected
})();
API high level design
There are no subpages or files.