Implemented attachment parameter for the GetDocument methods and improved readability a bit for CouchDatabase.cs #44

Merged
merged 2 commits into from Jan 30, 2013

Conversation

Projects
None yet
2 participants
Contributor

jvdgeest commented Jan 30, 2013

Please see the two commit messages for more details :)

Johan van der Geest added some commits Jan 30, 2013

Johan van der Geest Implement attachments parameter for GetDocument method in
CouchDatabase.cs. This allows you to fetch a document and all its
attachments in one request, by adding an ?attachments=true URL parameter
to the GET request. Although asking for a MIME multipart/related is more
efficient, it can sometimes be useful to just do it in one request.

Read
http://wiki.apache.org/couchdb/HTTP_Document_API#Getting_Attachments_With_a_Document
for more information about this subject.
31ae025
Johan van der Geest Improve readability of CouchDatabase.cs by using string.Format() wher…
…e applicable.
487ce7f

@soitgoes soitgoes added a commit that referenced this pull request Jan 30, 2013

@soitgoes soitgoes Merge pull request #44 from jvdgeest/master
Implemented attachment parameter for the GetDocument methods and improved readability a bit for CouchDatabase.cs
81448cf

@soitgoes soitgoes merged commit 81448cf into soitgoes:master Jan 30, 2013

Owner

soitgoes commented Jan 30, 2013

Great stuff. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment