1
0
mirror of synced 2025-12-23 21:07:12 -05:00

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:
Anthony Tan
2022-10-13 19:57:22 -04:00
parent 6e40ab6b2a
commit eff741daee
2 changed files with 19 additions and 19 deletions

View File

@@ -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"
```