incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johnny Weng Luu <johnny.weng....@gmail.com>
Subject RESTful document structure
Date Sat, 09 Jul 2011 18:39:51 GMT
Since CouchDB is implementing a RESTful API, doesn't that mean I wanna put
all documents of the same type in their own database?

eg.

POST http://localhost/users
GET http://localhost/users/1
PUT http://localhost/users/1
DELETE http://localhost/users/1

POST http://localhost/threads
GET http://localhost/threads/1
PUT http://localhost/threads/1
DELETE http://localhost/threads/1

Rather than putting them all in one big database (http://localhost/my_app).

Doesn't a 100% RESTful approach mean that the former is more correct?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message