Created
July 7, 2014 10:32
-
-
Save rnewson/c97e07898668e8f434af to your computer and use it in GitHub Desktop.
the _up endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< HTTP/1.1 200 OK | |
< X-CouchDB-Body-Time: 0 | |
< X-Couch-Request-ID: 31ca484b | |
* Server CouchDB/c10fe5e (Erlang OTP/R14B01) is not blacklisted | |
< Server: CouchDB/c10fe5e (Erlang OTP/R14B01) | |
< Date: Mon, 07 Jul 2014 10:32:26 GMT | |
< Content-Type: text/plain; charset=utf-8 | |
< Content-Length: 16 | |
< Cache-Control: must-revalidate | |
< | |
{"status":"ok"} | |
* Connection #0 to host localhost left intact | |
➜ ~ curl foo:bar@localhost:15984/_config/couchdb/maintenance_mode -XPUT -d '"true"' | |
"" | |
➜ ~ curl localhost:15984/_up -sv | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 15984 (#0) | |
> GET /_up HTTP/1.1 | |
> User-Agent: curl/7.37.0 | |
> Host: localhost:15984 | |
> Accept: */* | |
> | |
< HTTP/1.1 404 Object Not Found | |
< X-CouchDB-Body-Time: 0 | |
< X-Couch-Request-ID: 89acff11 | |
* Server CouchDB/c10fe5e (Erlang OTP/R14B01) is not blacklisted | |
< Server: CouchDB/c10fe5e (Erlang OTP/R14B01) | |
< Date: Mon, 07 Jul 2014 10:32:32 GMT | |
< Content-Type: text/plain; charset=utf-8 | |
< Content-Length: 30 | |
< Cache-Control: must-revalidate | |
< | |
{"status":"maintenance_mode"} | |
* Connection #0 to host localhost left intact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment