Skip to content

Commit

Permalink
fix(routes): add +json format to preview accept headers
Browse files Browse the repository at this point in the history
This should not make a difference in requests as JSON is the default format, but it aligns with the v3 REST API docs
  • Loading branch information
gr2m committed Nov 5, 2018
1 parent 33aba5d commit 4302523
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions lib/routes.json
Expand Up @@ -2725,7 +2725,7 @@
},
"create": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -2761,7 +2761,7 @@
},
"createComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -2842,7 +2842,7 @@
},
"deleteComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "DELETE",
"params": {
Expand Down Expand Up @@ -2903,7 +2903,7 @@
},
"edit": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "PATCH",
"params": {
Expand Down Expand Up @@ -2950,7 +2950,7 @@
},
"editComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "PATCH",
"params": {
Expand Down Expand Up @@ -2979,7 +2979,7 @@
},
"get": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand All @@ -3000,7 +3000,7 @@
},
"getAll": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3074,7 +3074,7 @@
},
"getComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3105,7 +3105,7 @@
},
"getComments": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3135,7 +3135,7 @@
},
"getCommentsForRepo": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3239,7 +3239,7 @@
},
"getEventsTimeline": {
"headers": {
"accept": "application/vnd.github.mockingbird-preview"
"accept": "application/vnd.github.mockingbird-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3270,7 +3270,7 @@
},
"getForOrg": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3328,7 +3328,7 @@
},
"getForRepo": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3393,7 +3393,7 @@
},
"getForUser": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -3796,7 +3796,7 @@
"migrations": {
"cancelImport": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "DELETE",
"params": {
Expand Down Expand Up @@ -3860,7 +3860,7 @@
},
"getImportCommitAuthors": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "GET",
"params": {
Expand All @@ -3880,7 +3880,7 @@
},
"getImportProgress": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "GET",
"params": {
Expand All @@ -3897,7 +3897,7 @@
},
"getLargeImportFiles": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -4007,7 +4007,7 @@
},
"mapImportCommitAuthor": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "PATCH",
"params": {
Expand All @@ -4034,7 +4034,7 @@
},
"setImportLfsPreference": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "PATCH",
"params": {
Expand Down Expand Up @@ -4082,7 +4082,7 @@
},
"startImport": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "PUT",
"params": {
Expand Down Expand Up @@ -4186,7 +4186,7 @@
},
"updateImport": {
"headers": {
"accept": "application/vnd.github.barred-rock-preview"
"accept": "application/vnd.github.barred-rock-preview+json"
},
"method": "PATCH",
"params": {
Expand Down Expand Up @@ -5908,7 +5908,7 @@
},
"createComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -5945,7 +5945,7 @@
},
"createCommentReply": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -6074,7 +6074,7 @@
},
"deleteComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "DELETE",
"params": {
Expand Down Expand Up @@ -6179,7 +6179,7 @@
},
"editComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "PATCH",
"params": {
Expand Down Expand Up @@ -6276,7 +6276,7 @@
},
"getComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand All @@ -6301,7 +6301,7 @@
},
"getComments": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -6345,7 +6345,7 @@
},
"getCommentsForRepo": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -6654,7 +6654,7 @@
"reactions": {
"createForCommitComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -6691,7 +6691,7 @@
},
"createForIssue": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -6724,7 +6724,7 @@
},
"createForIssueComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -6761,7 +6761,7 @@
},
"createForPullRequestReviewComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "POST",
"params": {
Expand Down Expand Up @@ -6860,7 +6860,7 @@
},
"delete": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "DELETE",
"params": {
Expand All @@ -6877,7 +6877,7 @@
},
"getForCommitComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -6919,7 +6919,7 @@
},
"getForIssue": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -6957,7 +6957,7 @@
},
"getForIssueComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down Expand Up @@ -6999,7 +6999,7 @@
},
"getForPullRequestReviewComment": {
"headers": {
"accept": "application/vnd.github.squirrel-girl-preview"
"accept": "application/vnd.github.squirrel-girl-preview+json"
},
"method": "GET",
"params": {
Expand Down

0 comments on commit 4302523

Please sign in to comment.