Skip to content

Commit

Permalink
minor changes on readme
Browse files Browse the repository at this point in the history
Change-Id: Idf7c6b2124e3c823a663494711a8f03adb064eea
  • Loading branch information
rafinskipg committed Jul 28, 2015
1 parent f388fbf commit a7fe444
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ var options = {
```javascript
corbelDriver.iam.token().create().then(function() {
return corbelDriver.resources.collection(collectionName).add('application/json', params);
}).then(function(response) {
var resourceId = response.data;
return corbelDriver.resources.resource(collectionName, respurceId).get();
}).then(function(resourceId) {
return corbelDriver.resources.resource(collectionName, resourceId).get();
}).then(function(response) {
console.log('resource', response.data);
}).catch(function(error) {
Expand Down Expand Up @@ -155,6 +154,9 @@ A collection is a container of resources that share the same type. For instance:
corbelDriver.resources
.collection('collectionName')
.add(objectData,requestOptionsObject)
.then(function(resourceCreatedId){
//
});
```

Examples:
Expand Down Expand Up @@ -376,7 +378,7 @@ Assets are dynamic groups of scopes that a user can have for a certain period of

This is an example of an asset:

```json
```javascript
{
_id: "0b2dff5c39934c210d80056a94eb27bc6c6d6378",
userId: "fooid",
Expand Down

0 comments on commit a7fe444

Please sign in to comment.