Horizontal Pipeline API
Endpoints for horizontal pipeline operations.
Endpoints
- POST /api/pipeline/upload
- GET /api/pipeline/status/pipeline_id"}
- GET /api/pipeline/result/pipeline_id"}
- GET /api/pipeline/contracts/pipeline_id"}
- GET /api/pipeline/health
- DELETE /api/pipeline/pipeline/pipeline_id"}
POST /api/pipeline/upload
Upload And Start Pipeline
Upload questionnaire file and start automatic pipeline processing
Args: file: Questionnaire file (PDF, TXT, JSON)
Returns: PipelineStatusResponse with pipeline_id for tracking
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/pipeline/upload" \
-H "Content-Type: application/json" \
-d '{}'GET /api/pipeline/status/{pipeline_id}"}
Get Pipeline Status
Get current status of pipeline processing
Args: pipeline_id: Pipeline ID from upload endpoint
Returns: PipelineStatusResponse with current status
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/pipeline/status/{pipeline_id}"}" \
-H "Content-Type: application/json"GET /api/pipeline/result/{pipeline_id}"}
Get Pipeline Result
Get complete pipeline result
Args: pipeline_id: Pipeline ID from upload endpoint
Returns: PipelineResultResponse with all results and contracts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/pipeline/result/{pipeline_id}"}" \
-H "Content-Type: application/json"GET /api/pipeline/contracts/{pipeline_id}"}
Download Contracts
Download all generated contracts as ZIP
Args: pipeline_id: Pipeline ID from upload endpoint
Returns: ZIP file with all contracts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/pipeline/contracts/{pipeline_id}"}" \
-H "Content-Type: application/json"GET /api/pipeline/health
Health Check
Health check endpoint
Responses
200: Successful Response
Examples
curl -X GET "https://api.altsportsdata.com/api/pipeline/health" \
-H "Content-Type: application/json"DELETE /api/pipeline/pipeline/{pipeline_id}"}
Cleanup Pipeline
Cleanup pipeline resources
Args: pipeline_id: Pipeline ID to cleanup
Returns: Success message
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X DELETE "https://api.altsportsdata.com/api/pipeline/pipeline/{pipeline_id}"}" \
-H "Content-Type: application/json"