Deletes a Note from database
URL : /api/v1/notes/{noteId}
Method : DELETE
Description: ID of note to be deleted. Should be a valid mongoDB objectID, i.e. hexadecimal string.
Parameter Type: Path Variable
Data Type: String
DELETE /api/v1/notes/67524c7a06bbdc38dacf50d6
Code : 204 No Content
Condition : If noteId is not a valid ObjectId.
Code : 400 BAD REQUEST
Content :
{
"description": "Validation Failed",
"details": [
"Invalid ObjectId"
]
}