Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitb108c90

Browse files
committed
Merge pull request#159 from Haacked/initial-example-fix
Provide a better example of a JSON request
2 parentsb73b251 +d0c2074 commitb108c90

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

‎content/v3.md‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,23 @@ domain (or through `yourdomain.com/api/v3/` for enterprise). All data is
1818
sent and received as JSON.
1919

2020
<preclass="terminal">
21-
$ curl -i https://api.github.com
21+
$ curl -i https://api.github.com/users/octocat/orgs
2222

23-
HTTP/1.1302 Found
24-
Server: nginx/1.0.12
25-
Date:Mon, 20 Feb 201211:15:49 GMT
26-
Content-Type:text/html;charset=utf-8
23+
HTTP/1.1200 OK
24+
Server: nginx
25+
Date:Fri, 12 Oct 201223:33:14 GMT
26+
Content-Type:application/json;charset=utf-8
2727
Connection: keep-alive
28-
Status: 302 Found
28+
Status: 200 OK
29+
ETag: "a00049ba79152d03380c34652f2cb612"
2930
X-RateLimit-Limit: 5000
30-
ETag: "d41d8cd98f00b204e9800998ecf8427e"
31-
Location: http://developer.github.com
32-
X-RateLimit-Remaining: 4999
33-
Content-Length: 0
31+
X-GitHub-Media-Type: github.beta
32+
X-RateLimit-Remaining: 4987
33+
Content-Length: 5
34+
Cache-Control: max-age=0, private, must-revalidate
35+
X-Content-Type-Options: nosniff
3436

37+
[]
3538
</pre>
3639

3740
Blank fields are included as`null` instead of being omitted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp