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

Add curl -h authorization header to REST API Code Samples (#28332)

* add curl -h authorization header

* move to get-rest-code-samples
This commit is contained in:
Grace Park
2022-06-08 13:06:48 -07:00
committed by GitHub
parent 7d22386dec
commit 3a88ec5f1f

View File

@@ -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)