Last updated 2 months ago
Get all documents for space (based on routine it belongs)
const response = await fetch('/api/documents', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "documents": [ "text" ] }
Get single document
const response = await fetch('/api/documents/{documentIndex}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "name": "text", "documentIndex": "text", "description": "text", "pages": [ "text" ], "zones": [ "text" ] }