@@ -26,7 +26,7 @@ to get the database information:
2626
2727.. code-block :: bash
2828
29- shell> curl http://admin:password@ 127.0.0.1:5984
29+ shell> curl http://127.0.0.1:5984
3030
3131 This returns the database information (formatted in the output below for
3232clarity):
@@ -65,13 +65,13 @@ clarity):
6565
6666 .. code-block :: bash
6767
68- shell> curl -X PUT ' http://127.0.0.1:5984/demo/doc' -d ' {"motto": "I love gnomes"}'
68+ shell> curl -X PUT ' http://adm:pass@ 127.0.0.1:5984/demo/doc' -d ' {"motto": "I love gnomes"}'
6969
7070 you should replace it with:
7171
72- .. code-blocK :: bash
72+ .. code-block :: bash
7373
74- shell> curl -X PUT " http://127.0.0.1:5984/demo/doc" -d " {" " motto" " : " " I love gnomes" " }"
74+ shell> curl -X PUT " http://adm:pass@ 127.0.0.1:5984/demo/doc" -d " {" " motto" " : " " I love gnomes" " }"
7575
7676 If you prefer, ``^" `` and ``\" `` may be used to escape the double-quote
7777 character in quoted strings instead.
@@ -82,15 +82,15 @@ URL you send using a PUT request:
8282
8383.. code-block :: bash
8484
85- shell> curl -X PUT http://user :pass@127.0.0.1:5984/demo
85+ shell> curl -X PUT http://adm :pass@127.0.0.1:5984/demo
8686 {" ok" :true}
8787
8888 But to obtain the database information you use a ``GET `` request (with
8989the return information formatted for clarity):
9090
9191.. code-block :: bash
9292
93- shell> curl -X GET http://user :pass@127.0.0.1:5984/demo
93+ shell> curl -X GET http://adm :pass@127.0.0.1:5984/demo
9494 {
9595 " compact_running" : false,
9696 " doc_count" : 0,
@@ -120,7 +120,7 @@ submit a simple document to the ``demo`` database:
120120.. code-block :: bash
121121
122122 shell> curl -H ' Content-Type: application/json' \
123- -X POST http://user :pass@127.0.0.1:5984/demo \
123+ -X POST http://adm :pass@127.0.0.1:5984/demo \
124124 -d ' {"company": "Example, Inc."}'
125125 {" ok" :true," id" :" 8843faaf0b831d364278331bc3001bd8" ,
126126 " rev" :" 1-33b9fbce46930280dab37d672bbc8bb9" }
@@ -133,7 +133,7 @@ that was returned:
133133
134134.. code-block :: bash
135135
136- shell> curl -X GET http://user :pass@127.0.0.1:5984/demo/8843faaf0b831d364278331bc3001bd8
136+ shell> curl -X GET http://adm :pass@127.0.0.1:5984/demo/8843faaf0b831d364278331bc3001bd8
137137 {" _id" :" 8843faaf0b831d364278331bc3001bd8" ,
138138 " _rev" :" 1-33b9fbce46930280dab37d672bbc8bb9" ,
139139 " company" :" Example, Inc." }
0 commit comments