Skip to content

Commit

Permalink
Add curl -h authorization header to REST API Code Samples (github#28332)
Browse files Browse the repository at this point in the history
* add curl -h authorization header

* move to get-rest-code-samples
  • Loading branch information
gracepark authored Jun 8, 2022
1 parent 7d22386 commit 3a88ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/get-rest-code-samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getShellExample(operation: Operation, codeSample: CodeSample) {

const args = [
operation.verb !== 'get' && `-X ${operation.verb.toUpperCase()}`,
`-H "Accept: ${defaultAcceptHeader}"`,
`-H "Accept: ${defaultAcceptHeader}" \\ \n -H "Authorization: <TOKEN>"`,
`${operation.serverUrl}${requestPath}`,
requestBodyParams,
].filter(Boolean)
Expand Down

0 comments on commit 3a88ec5

Please sign in to comment.