(accessToken: string)
| 78 | * @returns Headers object for API requests |
| 79 | */ |
| 80 | export function getJsmHeaders(accessToken: string): Record<string, string> { |
| 81 | return { |
| 82 | Authorization: `Bearer ${accessToken}`, |
| 83 | Accept: 'application/json', |
| 84 | 'Content-Type': 'application/json', |
| 85 | 'X-ExperimentalApi': 'opt-in', |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Build the base URL for the JSM Assets (Insight/CMDB) API. |