{
  "info": {
    "_postman_id": "e1c3b8c4-1825-4e0d-b39c-cribl-pipeline-sample",
    "name": "Data Pipeline Documentation Project",
    "description": "Postman collection for simulating the Streaming Ingest API used in the documentation project.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Streaming Ingest API",
      "description": "Simulated endpoint for ingesting events into a pipeline.",
      "item": [
        {
          "name": "/v1/streams/ingest",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_token}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "X-Stream-Id",
                "value": "{{stream_id}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/streams/ingest",
              "host": ["{{base_url}}"],
              "path": ["v1", "streams", "ingest"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"timestamp\": \"2025-02-12T18:20:03Z\",\n  \"source\": \"orders-service\",\n  \"level\": \"info\",\n  \"message\": \"Order processed\",\n  \"orderId\": \"ORD-91122\",\n  \"latency_ms\": 134\n}"
            },
            "description": "Simulated POST request to test ingestion of event data into the streaming pipeline."
          },
          "response": [
            {
              "name": "200 OK - Event Accepted",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Authorization",
                    "value": "Bearer {{api_token}}",
                    "type": "text"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Stream-Id",
                    "value": "{{stream_id}}",
                    "type": "text"
                  }
                ],
                "url": "{{base_url}}/v1/streams/ingest"
              },
              "status": "OK",
              "code": 200,
              "body": "{\n  \"status\": \"accepted\",\n  \"ingested_bytes\": 204,\n  \"stream_id\": \"{{stream_id}}\"\n}",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ]
            },
            {
              "name": "400 Bad Request - Invalid Format",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Authorization",
                    "value": "Bearer {{api_token}}",
                    "type": "text"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "X-Stream-Id",
                    "value": "{{stream_id}}",
                    "type": "text"
                  }
                ],
                "url": "{{base_url}}/v1/streams/ingest"
              },
              "status": "Bad Request",
              "code": 400,
              "body": "{\n  \"error\": \"invalid_format\",\n  \"detail\": \"The 'timestamp' field must be a valid ISO 8601 string.\"\n}",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "event": [],
  "variable": [
    {
      "key": "base_url",
      "value": "https://mock.example.com"
    },
    {
      "key": "api_token",
      "value": "demo-token-123"
    },
    {
      "key": "stream_id",
      "value": "demo-stream-001"
    }
  ]
}
