Skip to main content

Spec Management

Manage file format specifications for your data transformations.

Overview

The Spec Management API provides full CRUD operations for defining and validating file format specifications. Specifications define:

  • File format (CSV, Fixed-Width, XML)
  • File encoding and delimiter settings
  • Field definitions with types and validation rules
  • Header and skip configuration

Workflow

  1. Create a new spec with POST /api/v1/specs
  2. Retrieve specs with GET /api/v1/specs or GET /api/v1/specs/{id}
  3. Update existing specs with PUT /api/v1/specs/{id}
  4. Validate specs before use with POST /api/v1/specs/{id}/validate
  5. Delete specs when no longer needed with DELETE /api/v1/specs/{id}

Operations

Example: Create a CSV Spec

curl -X POST http://localhost:8080/api/v1/specs \
-H "Content-Type: application/json" \
-d '{
"name": "bank-transactions-csv",
"format": "CSV",
"delimiter": ",",
"hasHeader": true,
"fields": [
{
"name": "transactionId",
"type": "STRING",
"required": true
},
{
"name": "amount",
"type": "DECIMAL",
"required": true
}
]
}'

Schema References

See the Schemas section in the sidebar for detailed field definitions. Key schemas for this API: