Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interface definitionDescription
Content-Typeapplication/json
OperationPOSTPUT
URI/api/v1/templates

Request Body

...

AttributeRequiredTypeDescription
idYStringIdentifier for the template
anchorschemaYStringschema set on which xpath query should be executed
templateYStringxpath template

...

Interface definitionDescription
Content-Typeapplication/json
OperationGET
URI/api/v1/templates/{anchorschema}/{id}

Response Codes

CodeDescription
200Template found and returned
404Template not found
500Internal server error

...

Interface definitionDescription
Content-Typeapplication/json
OperationDELETE
URI/api/v1/templates/{anchorschema}/{id}

Response Codes

CodeDescription
200Template deleted successfully
400Bad Request (Error in request attributes)
500Internal server error

...

Interface definitionDescription
Content-Typeapplication/json
OperationPOST
URI/api/v1/execute/{anchorschema}/{id}

Request Body

AttributeRequiredTypeDescription
InputYJSON blobInput dictionary to be applied to the template

...