Versions Compared

Key

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

...

Code Block
curl -H "authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y<userAndPassEncoded>" -H "Content-Type: application/json" -d "{\"params\":{\"value\":\"/default-domain/workspaces/Patricia/Documents/4/49291/BX/99/20171009101809-Sign.docx\"}}" -X POST http://dms.knijff.local:8080/nuxeo/api/v1/automation/Document.Fetch
 
 
curl -X POST \
  http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.Fetch \
  -H 'authorization: Basic <userAndPassEncoded>' \
  -H 'content-type: application/json' \
  -d '{"params":{"value":"/default-domain/workspaces/Patricia/<documentPath>/<documentName>"}}'

...

Code Block
curl -H "authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y<userAndPassEncoded>" -H "Content-Type: application/json" -d "{\"params\":{\"entity-type\":\"document\",\"type\":\"File\",\"name\":\"testdoc.txt\",\"properties\":{\"dc:title\":\"testdoc.txt\",\"pifile:docCategoryId\":\"1\"}},\"input\":\"/default-domain/workspaces/Patricia/Documents/4/49291/BX/99/testdoc.txt\"}" -X POST http://dms.knijff.local:8080/nuxeo/api/v1/automation/Document.Create
 
 
curl -X POST \
  http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.Create \
  -H 'authorization: Basic <userAndPassEncoded>' \
  -H 'content-type: application/json' \
  -d '{"params":{"entity-type":"document","type":"File","name":"<docName>","properties":{"dc:title":"<docName>","pifile:docCategoryID":"<categoryID>"}},"input":"/default-domain/workspaces/Patricia/<documentPath>"}'

...