meter type id
This commit is contained in:
@@ -40,11 +40,20 @@ router.post('/', authenticateToken, validateCreateProject, projectController.cre
|
||||
* PUT /projects/:id
|
||||
* Protected endpoint - update an existing project
|
||||
* Headers: Authorization: Bearer <accessToken>
|
||||
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string }
|
||||
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string, meter_type_id?: string }
|
||||
* Response: { success: true, data: Project }
|
||||
*/
|
||||
router.put('/:id', authenticateToken, validateUpdateProject, projectController.update);
|
||||
|
||||
/**
|
||||
* PATCH /projects/:id
|
||||
* Protected endpoint - partially update an existing project
|
||||
* Headers: Authorization: Bearer <accessToken>
|
||||
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string, meter_type_id?: string }
|
||||
* Response: { success: true, data: Project }
|
||||
*/
|
||||
router.patch('/:id', authenticateToken, validateUpdateProject, projectController.update);
|
||||
|
||||
/**
|
||||
* DELETE /projects/:id
|
||||
* Protected endpoint - delete a project (requires admin role)
|
||||
|
||||
Reference in New Issue
Block a user