rest/json: Difference between revisions
Jump to navigation
Jump to search
(→Proposals: JSON Schema) |
|||
Line 38: | Line 38: | ||
* [http://groups.google.com/group/restful-json/browse_thread/thread/b3e8aa78052f67f1# HyperJSON Path Expressions] | * [http://groups.google.com/group/restful-json/browse_thread/thread/b3e8aa78052f67f1# HyperJSON Path Expressions] | ||
* [http://www.subbu.org/blog/2008/10/generalized-linking Generalized JSON Linking] | * [http://www.subbu.org/blog/2008/10/generalized-linking Generalized JSON Linking] | ||
* [http://json-schema.org/ JSON Schema] | |||
== Issues == | == Issues == |
Revision as of 19:16, 12 November 2008
RESTful JSON
Charter
Given that:
- REST is a powerful architecture for scalable web services
- JSON is a lightweight container for exchanging data
- AtomPub, while RESTful, requires XML documents with strict metadata requirements
The goal of the RESTful JSON project is to develop a series of conventions for:
- URLs
- HTTP methods
- HTTP headers
- JSON fields
that:
- is maximally compatible with existing (RESTful, generic) clients
- enables partial updates
- allows paging and/or partial returns of large datasets
- standardizes linking to related resources
- defines a generic query syntax
- uses hypermedia (links + context) to manage application state
- does NOT become a full-fledged RPC solution
Resources
- Original proposal by Joe Gregorio
- Standardizing RESTful JSON by Kris Zyp
- Google Group
- AtomPub (for comparison/inspiration)
Proposals
- rest/urls
- rest/json-collections
- JSON Path
- JSON Query
- JSON Referencing
- JSON Resources
- HyperJSON
- HyperJSON Path Expressions
- Generalized JSON Linking
- JSON Schema
Issues
- Is the top-level entity a simple array (Persevere, Dojo) or a full-fledged object (CouchDB, ActiveRecord?)
Implementations
- CouchDB
- Jester (same URLs as ActiveResource)
- Dojo REST store
- DOM Resource
- Persevere
- SproutCore
- Grassy Knoll (Python)
- Exhibit (example)