{
	"info": {
		"_postman_id": "62c26e90-5b92-4839-80fc-552d4e5c525c",
		"name": "Token API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Get Token",
			"item": [
				{
					"name": "Get token",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let jsonData = pm.response.json();\r",
									"pm.collectionVariables.set(\"BearerToken\", jsonData.access_token);"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "GET",
						"header": [
							{
								"key": "appClientId",
								"value": "{{ClientId}}",
								"type": "text"
							},
							{
								"key": "appClientSecret",
								"value": "{{ClientSecret}}",
								"type": "text"
							},
							{
								"key": "X-Correlation-ID",
								"value": "{{$guid}}",
								"type": "text"
							},
							{
								"key": "X-Source-System",
								"value": "",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://{{PUBLIC_HOST}}{{BASE_PATH_TOKEN_SERVICE}}/token?Scope=Informational",
							"protocol": "https",
							"host": [
								"{{PUBLIC_HOST}}{{BASE_PATH_TOKEN_SERVICE}}"
							],
							"path": [
								"token"
							],
							"query": [
								{
									"key": "Scope",
									"value": "Informational"
								},
								{
									"key": "Resource",
									"value": "https://graph.microsoft.com",
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Health Check",
			"item": [
				{
					"name": "Healthcheck",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{BearerToken}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [
							{
								"key": "X-Correlation-ID",
								"value": "{{$guid}}",
								"type": "text"
							},
							{
								"key": "X-Source-System",
								"value": "",
								"type": "text",
								"disabled": true
							},
							{
								"key": "X-Dependent-Ping",
								"value": "false",
								"type": "default"
							}
						],
						"url": {
							"raw": "https://{{PUBLIC_HOST}}{{BASE_PATH_TOKEN_SERVICE}}/healthcheck",
							"protocol": "https",
							"host": [
								"{{PUBLIC_HOST}}{{BASE_PATH_TOKEN_SERVICE}}"
							],
							"path": [
								"healthcheck"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "PUBLIC_HOST",
			"value": "api-connect.westernalliancebank.com",
			"type": "default"
		},
		{
			"key": "BearerToken",
			"value": "",
			"type": "default"
		},
		{
			"key": "ClientId",
			"value": "",
			"type": "default"
		},
		{
			"key": "ClientSecret",
			"value": "",
			"type": "default"
		},
		{
			"key": "BASE_PATH_TOKEN_SERVICE",
			"value": "/entitlements-get-token-eapi/api/v1",
			"type": "default"
		}
	]
}