I have four folders, is it possible to access them and get all the files?
I already tried this:
jQuery.ajax({
url: "https://test.sharepoint.com/sites/test/Negocio/Precario/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/test/Negocio/Precario/Precario%20Documentos/Cap%C3%ADtulo%201%20-%20Pre%C3%A7%C3%A1rio%20CEMG')/Files",
type: "GET",
headers: {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
},
success: function (data) {
console.log(data);
},
error: function (error) {
console.log(error);
}
});
But only retrieve the "Secretariado Seccao de Empresa" file.
I could access each folder individually but it's not the idea, will it be possible to access them all at once?