From d0c2074b062d3f7f8d234edcf28184ef3f703849 Mon Sep 17 00:00:00 2001 From: Haacked Date: Fri, 12 Oct 2012 16:34:24 -0700 Subject: [PATCH] Provide a better example of a JSON request --- content/v3.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/content/v3.md b/content/v3.md index 1b6f543b1a..8ce5534882 100644 --- a/content/v3.md +++ b/content/v3.md @@ -18,20 +18,23 @@ domain (or through `yourdomain.com/api/v3/` for enterprise). All data is sent and received as JSON.
-$ curl -i https://api.github.com
+$ curl -i https://api.github.com/users/octocat/orgs
 
-HTTP/1.1 302 Found
-Server: nginx/1.0.12
-Date: Mon, 20 Feb 2012 11:15:49 GMT
-Content-Type: text/html;charset=utf-8
+HTTP/1.1 200 OK
+Server: nginx
+Date: Fri, 12 Oct 2012 23:33:14 GMT
+Content-Type: application/json; charset=utf-8
 Connection: keep-alive
-Status: 302 Found
+Status: 200 OK
+ETag: "a00049ba79152d03380c34652f2cb612"
 X-RateLimit-Limit: 5000
-ETag: "d41d8cd98f00b204e9800998ecf8427e"
-Location: http://developer.github.com
-X-RateLimit-Remaining: 4999
-Content-Length: 0
+X-GitHub-Media-Type: github.beta
+X-RateLimit-Remaining: 4987
+Content-Length: 5
+Cache-Control: max-age=0, private, must-revalidate
+X-Content-Type-Options: nosniff
 
+[]
 
Blank fields are included as `null` instead of being omitted.