# Template: HTTP Extraction with Path Parameters
# Copy to your pipeline directory as extract.yaml
# Use when API endpoint contains path parameters like /users/{user_id}

title: http_path_params_extraction
description: HTTP extraction with path parameter substitution
version: "1.0.0"

# Source type (required)
type: http

base_url: https://api.example.com
api_endpoint: /v1/users/{user_id}/orders

method: GET

# Path parameters (substituted into {param} placeholders in endpoint)
# Pass values at runtime: pipeline.run(user_id="123")
input_params:
  user_id:
    type: string
    required: true
    description: User ID to fetch orders for

# Query parameters
params:
  api_key: ${API_KEY}
  limit: 100

headers:
  Accept: application/json

batch_size: 1000
response_format: json
response_path: data.orders  # Path to data array in response

pagination:
  enabled: false
