diff --git a/tests/demo-project/tests/upload.http b/tests/demo-project/tests/upload.http index a2f70f6..bdaf419 100644 --- a/tests/demo-project/tests/upload.http +++ b/tests/demo-project/tests/upload.http @@ -1,5 +1,5 @@ ### upload spreadsheet for specific entity -PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Books')/content +PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet < .\spreadsheettest.xlsx diff --git a/tests/demo-project/tests/upload.test.js b/tests/demo-project/tests/upload.test.js index 09e82df..0ac185d 100644 --- a/tests/demo-project/tests/upload.test.js +++ b/tests/demo-project/tests/upload.test.js @@ -12,7 +12,7 @@ describe('Upload API Tests', () => { const fileBuffer = fs.readFileSync(filePath); const uploadResponse = await fetch( - `${BASE_URL}/odata/v4/importer/Spreadsheet(entity='Books')/content`, + `${BASE_URL}/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content`, { method: 'PUT', headers: { diff --git a/tests/demo-project/tests/upload_authors.http b/tests/demo-project/tests/upload_authors.http index ae14229..efe57f4 100644 --- a/tests/demo-project/tests/upload_authors.http +++ b/tests/demo-project/tests/upload_authors.http @@ -1,5 +1,5 @@ ### upload spreadsheet for specific entity -PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Authors')/content +PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Authors')/content Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet < .\authors.xlsx