Understand the REST modules, versioning, and response styles exposed by FeraRender.
Overview
Understand the REST modules, versioning, and response styles exposed by FeraRender. API clients must be tenant-aware, permission-aware, and capable of handling both JSON and binary responses.
Key points
- Use the /api/v1 routes as the preferred integration surface.
- The service also mounts legacy unversioned API paths.
- Modules cover templates, components, datasets, mappings, DOCX, PDF, and XML.
- Most management operations return JSON.
- Rendering operations may stream binary content.
Endpoints
| Method | Route | Purpose |
|---|---|---|
| /api/v1/templates | Template management. | |
| /api/v1/template-components | Reusable component management. | |
| /api/v1/datasets | Dataset definitions. | |
| /api/v1/field-mappings | Placeholder-to-XPath mappings. | |
| /api/v1/docx | DOCX rendering. | |
| /api/v1/pdf/document | PDF document rendering. | |
| /api/v1/pdf/forms | PDF form operations. | |
| /api/v1/xml | Direct XML/XSLT transformation. |
Recommended procedure
- Send authentication and instance headers.
- Validate the request body before transmission.
- Inspect HTTP status, content type, and structured errors.
- Log non-sensitive identifiers needed to reproduce failures.
Client requirements
- Check the HTTP status before processing the body.
- Check
Content-Typebefore deciding whether the response is JSON, DOCX, or PDF. - Do not log authentication tokens or complete client document data.
- Preserve the instance context through every Feradel service-to-service call.
- Treat validation and compilation errors as input or template defects rather than transient network failures.
Troubleshooting
A client treats an error as a file
Check HTTP status and Content-Type before writing the response body to disk.
The same request works in another tenant
Compare instance, owner, token permissions, and object UUIDs.
A route returns an unexpected envelope
The current controllers are not fully standardized; handle HTTP status and documented fields defensively.
Related documentation
- API Authentication and Required Headers
- API Authorization and Tenant Scoping
- API Request, Response, and Error Conventions
Documentation source: feradelinc/feradel.render.api, reviewed against repository revision b2c3a710. Verify behavior against the deployed release before publishing exact routes, limits, or version requirements.