Skip to content

Commit 4b4235c

Browse files
authored
repo sync
2 parents 871d886 + 49fa748 commit 4b4235c

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

content/graphql/guides/forming-calls-with-graphql.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Mutations are structured like this:
103103
<pre>mutation {
104104
<em>mutationName</em>(input: {<em>MutationNameInput!</em>}) {
105105
<em>MutationNamePayload</em>
106+
}
106107
}</pre>
107108

108109
The input object in this example is `MutationNameInput`, and the payload object is `MutationNamePayload`.

content/rest/overview/resources-in-the-rest-api.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For information about GitHub's GraphQL API, see the [v4 documentation](/graphql)
3131
sent and received as JSON.
3232

3333
```shell
34-
$ curl -i {% data variables.product.api_url_pre %}/users/octocat/orgs
34+
$ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
3535

3636
> HTTP/1.1 200 OK
3737
> Server: nginx
@@ -137,7 +137,7 @@ Read [more about unauthenticated rate limiting](#increasing-the-unauthenticated-
137137
Authenticating with invalid credentials will return `401 Unauthorized`:
138138
139139
```shell
140-
$ curl -i {% data variables.product.api_url_pre %} -u foo:bar
140+
$ curl -I {% data variables.product.api_url_pre %} -u foo:bar
141141
> HTTP/1.1 401 Unauthorized
142142
143143
> {
@@ -369,7 +369,7 @@ Note that [the Search API has custom rate limit rules](/rest/reference/search#ra
369369
The returned HTTP headers of any API request show your current rate limit status:
370370
371371
```shell
372-
$ curl -i {% data variables.product.api_url_pre %}/users/octocat
372+
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
373373
> HTTP/1.1 200 OK
374374
> Date: Mon, 01 Jul 2013 17:27:06 GMT
375375
> Status: 200 OK
@@ -469,7 +469,7 @@ User-Agent: Awesome-Octocat-App
469469
cURL sends a valid `User-Agent` header by default. If you provide an invalid `User-Agent` header via cURL (or via an alternative client), you will receive a `403 Forbidden` response:
470470
471471
```shell
472-
$ curl -iH 'User-Agent: ' {% data variables.product.api_url_pre %}/meta
472+
$ curl -IH 'User-Agent: ' {% data variables.product.api_url_pre %}/meta
473473
> HTTP/1.0 403 Forbidden
474474
> Connection: close
475475
> Content-Type: text/html
@@ -501,7 +501,7 @@ whenever possible.
501501
{% endif %}
502502
503503
```shell
504-
$ curl -i {% data variables.product.api_url_pre %}/user
504+
$ curl -I {% data variables.product.api_url_pre %}/user
505505
> HTTP/1.1 200 OK
506506
> Cache-Control: private, max-age=60
507507
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
@@ -512,7 +512,7 @@ $ curl -i {% data variables.product.api_url_pre %}/user
512512
> X-RateLimit-Remaining: 4996
513513
> X-RateLimit-Reset: 1372700873
514514
515-
$ curl -i {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
515+
$ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
516516
> HTTP/1.1 304 Not Modified
517517
> Cache-Control: private, max-age=60
518518
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
@@ -523,7 +523,7 @@ $ curl -i {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
523523
> X-RateLimit-Remaining: 4996
524524
> X-RateLimit-Reset: 1372700873
525525
526-
$ curl -i {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: Thu, 05 Jul 2012 15:31:30 GMT"
526+
$ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: Thu, 05 Jul 2012 15:31:30 GMT"
527527
> HTTP/1.1 304 Not Modified
528528
> Cache-Control: private, max-age=60
529529
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
@@ -546,7 +546,7 @@ Here's a sample request sent from a browser hitting
546546
`http://example.com`:
547547
548548
```shell
549-
$ curl -i {% data variables.product.api_url_pre %} -H "Origin: http://example.com"
549+
$ curl -I {% data variables.product.api_url_pre %} -H "Origin: http://example.com"
550550
HTTP/1.1 302 Found
551551
Access-Control-Allow-Origin: *
552552
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
@@ -555,7 +555,7 @@ Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-Ra
555555
This is what the CORS preflight request looks like:
556556
557557
```shell
558-
$ curl -i {% data variables.product.api_url_pre %} -H "Origin: http://example.com" -X OPTIONS
558+
$ curl -I {% data variables.product.api_url_pre %} -H "Origin: http://example.com" -X OPTIONS
559559
HTTP/1.1 204 No Content
560560
Access-Control-Allow-Origin: *
561561
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-GitHub-OTP, X-Requested-With

0 commit comments

Comments
 (0)