Start the Server
- Docker
- Docker Compose
- Java (no Docker)
Run the following two commands from the repository root. The first builds the image; the second starts the container with a read-only filesystem, a small tmpfs for uploads, and resource limits to contain a runaway parse.Open http://localhost:8080 in your browser to verify the server is running.
Parse a File with the API
Once the server is running, send the raw file content as the POST body with the filename as thename query parameter:
--compressed flag requests gzip encoding. The response is a JSON tree representing the parsed file structure.
Uploaded files are written to a temporary file only for the duration of parsing. The temporary file is deleted immediately after the parse completes, regardless of whether it succeeded or failed.
Response Structure
Each node in the returned JSON tree has the following shape:Error Responses
When parsing fails, the server returns a JSON error object:Other Endpoints
Next Steps
- See API Reference for the full endpoint specification.
- See Configuration for all environment variables (
HOST,PORT,MAX_UPLOAD_MB,MAX_CONCURRENT_PARSES,PARSE_TIMEOUT_SECONDS,CORS_ORIGIN).