Ask
Type to search
Endpoints

Transformers

(Remote) Transformers are meant specifically for Git sync integration. They allow you to use remote endpoints to process the content in a custom way, in and out of Vrite. This way Vrite can support all kinds of content formats, including Markdown, MDX, Markdoc, etc. The API allows you to retrieve and manage transformers.

List Transformers

Lists the details of all registered transformers.

GET
/transformers/list
Response object[]
idstring

ID of the transformer

labelstring

Label assigned to the transformer

inputstring

URL of the input transformer

outputstring

URL of the output transformer

maxBatchSizenumber

Maximum batch size for the transformer

inUseboolean

Whether the transformer is in use with Git sync

extensionboolean

Whether the transformer is associated with an extension

Request
Response
[
  {
    "id": "28c17701360e74c880edd4f5",
    "label": "string",
    "input": "string",
    "output": "string",
    "maxBatchSize": 1000,
    "inUse": true,
    "extension": true
  }
]

Create Transformer

Creates a new transformer with the specified input and output transformer endpoints, label, and max batch size.

POST
/transformers
Body Parameters
labelstring
Required

Label assigned to the transformer

inputstring
Required

URL of the input transformer

outputstring
Required

URL of the output transformer

maxBatchSizenumber
Required

Maximum batch size for the transformer

Response object
idstring

ID of the transformer

Request
Response
{
  "id": "91d43435abf71aa34d3ab602"
}

Delete Transformer

Deletes the transformer specified by ID. If the transformer is in use (configured in the current Git sync configuration) it throws an error.

DELETE
/transformers
Query Parameters
idstring
Required

ID of the transformer

Response 200
Request