POST /parsers-engine-rpc

Execute the Parsers Engine against a given input and Parsers Rules.

Route

Method: POST

Authentication: required

Url:

https://api.specifyapp.com/v2/parsers-engine-rpc

Headers

Content-Type: application/json
Authorization: PAT <your-personal-access-token>

Request Body

type ParsersEngineRPCRequestBody = {
  dataBox: ParsersEngineDataBox;
  rules: Array<ParserRule>;
  returnedKeys?: {
    output?: boolean;
    next?: boolean;
    errorMessages?: boolean;
    warningMessages?: boolean;
    informationMessages?: boolean;
  };
};
Name
Type
Description

dataBox

The initial state to launch the parsers engine from.

rules

Array<ParserRule>

The parser rule definitions to instruct the transformation and generation pipelines.

returnedKeys

Record<string, boolean | undefined> | undefined

Select which response keys should be present. Defaults to true.

Response Body

circle-info

The response is an array where each item is the result of the rule given in the request, at the same index.

circle-info

The output type matches the output configured within the rule given in the request.

circle-exclamation

Example

Here's a simple example to get the raw tokens in JSON from a repository called all-design-datain the @acme-inc workspace:

Last updated

Was this helpful?