{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7ddf81e7-7541-4a02-b5d8-695d83b1897c",
    "slug": "scalar-api-reference",
    "name": "Scalar API Reference",
    "description": "Modern API documentation for OpenAPI/Swagger",
    "url": "https://railway.com/deploy/scalar-api-reference",
    "upstream": {
      "image": "scalarapi/api-reference:latest"
    }
  },
  "services": [
    {
      "name": "Scalar API Reference",
      "source": {
        "image": "scalarapi/api-reference:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Scalar API Reference",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "API_REFERENCE_CONFIG",
      "service": "Scalar API Reference",
      "description": "Refer to https://scalar.com/products/api-references/configuration for configuration",
      "secret": false,
      "strategy": "default",
      "default": "{\"sources\":[{\"url\": \"https://registry.scalar.com/@scalar/apis/galaxy?format=json\"}],\"theme\": \"purple\"}"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "scalar-api-reference"
      }
    },
    "cli": "railway deploy --template scalar-api-reference",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7ddf81e7-7541-4a02-b5d8-695d83b1897c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "06bce6f9-5616-4981-8c19-8527bb0e0298": {
                  "icon": "https://scalar.com/brand/scalar-logomark-dark.svg",
                  "name": "Scalar API Reference",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "scalarapi/api-reference:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "API_REFERENCE_CONFIG": {
                      "isOptional": false,
                      "description": "Refer to https://scalar.com/products/api-references/configuration for configuration",
                      "defaultValue": "{\"sources\":[{\"url\": \"https://registry.scalar.com/@scalar/apis/galaxy?format=json\"}],\"theme\": \"purple\"}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Scalar API Reference",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T08:53:37.194Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b30ef3c542a547778049",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 85,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Scalar API Reference"
  }
}
