What is the difference between Rest API Endpoints and command endpoints?

What is the difference between Rest API Endpoints and command endpoints? Both are having an endpoint for same operations like update document. When to use which endpoint?

0 votes

1 answers

720 views

ANSWER



The command endpoints are one type of Rest API endpoint exposed by Nuxeo to be used when you need to call an automation operation. If you just need to make a simple document update it´s probably easier to just use a PUT on a document resource endpoint but if you need your Nuxeo app to use your custom check or get automation chain as part of the update you need to use the command endpoint.

0 votes