x48otw
Last Updated: February 25, 2016
·
1.334K
· runexec
81609937c20aeab3598aea56f1f4f022

CouchDB - Slashing document names.

The _design document is the only CouchDB document type that can contain a literal slash in the name because, slashes are automatically escaped with urlencoding. Keep scrolling for examples,

Works fine!

Database: mine
Document-Name: _design/ec2-instance
http://localhost:5984/mine/_design/ec2-instance

No no no!

Database: mine
Document-Name: users/ec2-instance
http://localhost:5984/mine/users%2Fec2-instance

Yes!

Database: mine
Document-Name: users\/ec2-instance
http://localhost:5984/mine/users/ec2-instance
Say Thanks
Respond