Remove .v3 from accept header examples.
`v3` header no longer required and has no impact on API requests as per docs so probably shouldn't be in example code. Fixes github/docs#21327
This commit is contained in:
@@ -278,7 +278,7 @@ jobs:
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url "https://api.github.com/repos/octocat/Spoon-Knife/issues" \
|
||||
--header "Accept: application/vnd.github.v3+json" \
|
||||
--header "Accept: application/vnd.github+json" \
|
||||
--header "Authorization: Bearer YOUR-TOKEN"
|
||||
```
|
||||
|
||||
@@ -308,7 +308,7 @@ jobs:
|
||||
run: |
|
||||
curl --request GET \
|
||||
--url "https://api.github.com/repos/octocat/Spoon-Knife/issues" \
|
||||
--header "Accept: application/vnd.github.v3+json" \
|
||||
--header "Accept: application/vnd.github+json" \
|
||||
--header "Authorization: Bearer $GH_TOKEN"
|
||||
```
|
||||
|
||||
@@ -340,7 +340,7 @@ jobs:
|
||||
run: |
|
||||
curl --request GET \
|
||||
--url "https://api.github.com/repos/octocat/Spoon-Knife/issues" \
|
||||
--header "Accept: application/vnd.github.v3+json" \
|
||||
--header "Accept: application/vnd.github+json" \
|
||||
--header "Authorization: Bearer $GH_TOKEN"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user