diff --git a/docs/Testing/Testing.docx b/docs/Testing/Testing.docx index 718e4cb..152bda3 100644 Binary files a/docs/Testing/Testing.docx and b/docs/Testing/Testing.docx differ diff --git a/docs/openapi.yaml b/docs/openapi.yaml index f9fe880..539dc2b 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -390,6 +390,10 @@ paths: schema: type: string format: binary + '404': + description: Not Found or Unauthorized + '400': + description: Bad Request - Id not a positive integer /api/materials: get: diff --git a/src/controllers/projectsController.js b/src/controllers/projectsController.js index dbe5eac..8120778 100644 --- a/src/controllers/projectsController.js +++ b/src/controllers/projectsController.js @@ -110,7 +110,7 @@ export async function deleteProjectFileHandler(req, res) { return res.status(404).json({ error: 'File not found or unauthorized' }); } - res.status(200).json({ message: 'File deleted successfully' }); + res.status(204).json({ message: 'File deleted successfully' }); } catch (error) { res.status(400).json({ error: 'Invalid file ID' }); }