Quick Start โ
Get started with the cyber.trackr.live API in minutes! Choose your approach based on your needs.
Choose Your Workflow โ
๐ Ruby Client (Recommended) โ
Install and Basic Usage โ
First, install the Ruby client - it only takes a minute.
Complete Ruby Examples: See the Ruby Client guide for comprehensive examples including basic usage, workflows, and error handling patterns.
Common Workflow Patterns โ
1. Discovery Workflow โ
# Find STIGs for specific technology
stigs = helper.list_stigs
juniper_stigs = stigs.select { |id, info| info[:title].include?('Juniper') }
puts "๐ก Juniper STIGs found:"
juniper_stigs.each do |id, info|
puts " โข #{info[:title]} (v#{info[:version]}.#{info[:release]})"
end
2. Compliance Analysis Workflow โ
# Get complete STIG data
stig = helper.fetch_complete_stig('Juniper_SRX_Services_Gateway_ALG', '3', '3')
# Analyze requirement severity distribution
severity_counts = stig[:requirements].group_by { |req| req[:severity] }
.transform_values(&:count)
puts "๐ Severity Distribution:"
severity_counts.each { |severity, count| puts " #{severity}: #{count}" }
# Find CAT I (high) requirements
cat1_requirements = stig[:requirements].select { |req| req[:severity] == 'high' }
puts "\n๐จ Critical (CAT I) Requirements: #{cat1_requirements.count}"
3. Automation Integration Workflow โ
# Extract check procedures for automation
stig[:requirements].each do |req|
next unless req[:severity] == 'high'
puts "\n๐ #{req[:id]}: #{req[:title]}"
puts "Check: #{req[:check_content]}"
puts "Fix: #{req[:fix_text]}" if req[:fix_text]
end
๐ Direct API Access โ
Basic HTTP Requests โ
# List all documents
curl https://cyber.trackr.live/api/stig
# Get specific STIG metadata
curl https://cyber.trackr.live/api/stig/Juniper_SRX_Services_Gateway_ALG/3/3
# Get all requirements for a STIG
curl https://cyber.trackr.live/api/stig/Juniper_SRX_Services_Gateway_ALG/3/3/requirements
JavaScript/TypeScript Example โ
// Modern fetch API
const response = await fetch('https://cyber.trackr.live/api/stig');
const stigs = await response.json();
console.log(`๐ Found ${Object.keys(stigs).length} documents`);
// Get specific STIG
const stig = await fetch(
'https://cyber.trackr.live/api/stig/Juniper_SRX_Services_Gateway_ALG/3/3/requirements'
).then(r => r.json());
console.log(`๐ก๏ธ ${stig.title} has ${stig.requirements.length} requirements`);
Python Example โ
import requests
# List STIGs
response = requests.get('https://cyber.trackr.live/api/stig')
stigs = response.json()
print(f"๐ Found {len(stigs)} documents")
# Get specific STIG
stig_response = requests.get(
'https://cyber.trackr.live/api/stig/Juniper_SRX_Services_Gateway_ALG/3/3/requirements'
)
stig = stig_response.json()
print(f"๐ก๏ธ {stig['title']} has {len(stig['requirements'])} requirements")
๐ Interactive Documentation โ
Zero setup required! Use our interactive API documentation:
- Visit API Reference - Complete endpoint documentation
- Click any endpoint - Detailed parameter descriptions
- Use "Try it out" - Make live API calls in your browser
- View responses - Real data with example structures
Best for:
- ๐ API exploration - Understand available data
- ๐งช Quick testing - Validate endpoints before coding
- ๐ Learning - See real request/response examples
๐ง Generate Your Own Client โ
Use our OpenAPI 3.1.1 specification to generate clients in any language:
TypeScript/JavaScript โ
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i https://raw.githubusercontent.com/mitre/cyber-trackr-live/main/openapi/openapi.yaml \
-g typescript-fetch \
-o ./cyber-trackr-client \
--additional-properties=npmName=cyber-trackr-client
Python โ
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i https://raw.githubusercontent.com/mitre/cyber-trackr-live/main/openapi/openapi.yaml \
-g python \
-o ./cyber-trackr-client \
--additional-properties=packageName=cyber_trackr_client
Go โ
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i https://raw.githubusercontent.com/mitre/cyber-trackr-live/main/openapi/openapi.yaml \
-g go \
-o ./cyber-trackr-client \
--additional-properties=packageName=cybertrackr
Real-World Use Cases โ
๐ข Enterprise Compliance โ
Enterprise Compliance Examples: See the Ruby Client examples for automated compliance dashboard patterns and technology stack STIG processing.
๐ง Security Tool Integration โ
Security Tool Integration Examples: See the Ruby Client examples for automated check extraction and security scanning tool integration patterns.
Error Handling & Best Practices โ
Robust Error Handling โ
See the Ruby Client examples for comprehensive error handling patterns including API errors, timeouts, and retry logic.
Rate Limiting & Performance โ
Performance Examples: See the Ruby Client examples for rate limiting, batch processing, and performance optimization patterns.
Next Steps โ
๐ฏ For API Consumers โ
- Ruby Client Guide - Complete Ruby client documentation
- API Reference - Interactive endpoint documentation
๐๏ธ For Developers โ
- Testing Guide - Two-tier testing approach
- Development Patterns - Architecture and OpenAPI development
๐ For Enterprise โ
- Universal Patterns - Reusable approaches for any OpenAPI project
- Contributing - Join the cyber.trackr.live ecosystem
Questions? Check our GitHub Discussions or browse the complete documentation.