1
0
mirror of synced 2025-12-22 11:26:57 -05:00

add token to curl examples (#28357)

This commit is contained in:
Rachael Sewell
2022-06-09 08:36:57 -07:00
committed by GitHub
parent 6512dbdcca
commit dd6e60242b

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}" \\ \n -H "Authorization: <TOKEN>"`,
`-H "Accept: ${defaultAcceptHeader}" \\ \n -H "Authorization: token <TOKEN>"`,
`${operation.serverUrl}${requestPath}`,
requestBodyParams,
].filter(Boolean)