Page 1 of 1

API REST - GET DOCUMENT

Posted: Mon May 27, 2019 3:10 pm
by tamires
Hey!
I'm trying to get a GetDocument with the REST API, however it is returning me ERROR
This is the URL I'm using url: http://localhost:8080/getDocument?sid=xxxxxdocId=xxxx

Como eu faço a chamada de API REST ?
How to do call API REST by URL?

Re: API REST - GET DOCUMENT

Posted: Wed Jun 05, 2019 3:24 pm
by agaspa
Hi @tamires,
The Url you're using is not correct
This is a link to the latest version of REST API (it is the same also in LD 8.3)
https://docs.logicaldoc.com/resources/w ... sion=8.1.0

The request Url is:

Code: Select all

https://localhost:8080/services/rest/document/getDocument?docId=34

Code: Select all

$ curl -u admin:admin -X GET --header 'Accept: application/json' 'http://localhost:8080/services/rest/document/getDocument?docId=34'
Note, you should pass the Basic authentication in the header