{
  "variables": {
    "apiKey": "33052c8a-c283-4e96-9d2a-eb1215c69f8f-not-for-prod",
    "asymmetricKeyId": "#{UUID()}",
    "applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e",
    "clientSecret": "super-secret-secret-that-should-be-regenerated-for-production",
    "defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
    "adminUserId": "00000000-0000-0000-0000-000000000001"
  },
  "apiKeys": [
    {
      "key": "#{apiKey}",
      "description": "Unrestricted API key"
    }
  ],
  "requests": [
    {
      "method": "POST",
      "url": "/api/key/generate/#{asymmetricKeyId}",
      "body": {
        "key": {
          "algorithm": "RS256",
          "name": "For example app",
          "length": 2048
        }
      }
    },
    {
      "method": "POST",
      "url": "/api/application/#{applicationId}",
      "tenantId": "#{defaultTenantId}",
      "body": {
        "application": {
          "name": "#{applicationName}",
          "oauthConfiguration": {
            "authorizedRedirectURLs": [
              "https://fusionauth.io"
            ],
            "logoutURL": "https://fusionauth.io",
            "clientSecret": "#{clientSecret}",
            "enabledGrants": [
              "authorization_code",
              "refresh_token"
            ],
            "generateRefreshTokens": true,
            "requireRegistration": true
          },
          "jwtConfiguration": {
            "enabled": true,
            "accessTokenKeyId": "#{asymmetricKeyId}",
            "idTokenKeyId": "#{asymmetricKeyId}"
          }
        }
      }
    },
    {
      "method": "POST",
      "url": "/api/user/import",
      "body": {
        "users": [
          {
            "email": "#{adminEmail}",
            "password": "#{adminPassword}",
            "salt": "#{saltPassword}",
            "encryptionScheme": "bcrypt",
            "factor": 10,
            "active": true,
            "verified": true,
            "skipRegistrationVerification": true,
            "roles": [
              "admin"
            ],
            "registrations": [
              {
                "applicationId": "#{applicationId}"
              },
              {
                "applicationId": "#{FUSIONAUTH_APPLICATION_ID}",
                "roles": [
                  "admin"
                ]
              }
            ]
          }
        ]
      }
    }    
  ]
}