jesperfj/force-rest-api — pull request #7 by ryanbrainard (2012-06-02 20:46:22+00:00)
Title: Rich API Completeness 1

These are changes to make force-rest-api more completely support all REST API operations and make it more compatible with the Rich SObjects library:
- Added support for queryMore using the `nextRecordsUrl`. Previously users had no way of actually using the URL returned in the QueryResult.
- Fully support `describeGlobal()` to include `encoding` and `batchSize`
- Fixed `describeGlobal()` to correctly return a `DescribeSObjectBasic` (i.e. new superclass of `DescribeSObject` that does not include `fields` and `childRelationships`) instead of full `DescribeSObject` with null `fields` and `childRelationships`. This better matches the API and avoids potential NPEs.
- Added support for `discoverSObject()`, which corresponds to the `/services/data//` resource (without `/describe`), which gives access to `objectDescribe` (of type `DescribeSObjectBasic`) and `recentItems` (of type `T`). I'm not particularly fond of the method's name, so change it if you'd like, but it seemed like the most appropriate given that `describeSObject()` and `getSObject()` were already taken. This was needed because it was the only way to access `recentItems`.