API REST - GET DOCUMENT

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

tamires
Posts: 6
Joined: Mon May 27, 2019 1:29 pm

API REST - GET DOCUMENT

Mon May 27, 2019 3:10 pm

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?
agaspa
Posts: 681
Joined: Tue Apr 20, 2010 8:24 am

Re: API REST - GET DOCUMENT

Wed Jun 05, 2019 3:24 pm

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

Return to “Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest