-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Test1: Perry has been through a very long day and entered a priority out of bounds.
Request:
curl -X 'POST' \
'https://chore-tracker-api.onrender.com/chores/create_chore' \
-H 'accept: application/json' \
-H 'access_token: a' \
-H 'Content-Type: application/json' \
-d '{
"name": "Deep clean kitchen",
"location_in_house": "kitchen",
"frequency": "weekly",
"duration_mins": 45,
"priority": 10,
"due_date": "2024-11-16"
}'
Response:
{
Internal Server Error
}
That should be handled
Test2: After finishing washing dishes, while trying to update his chore status, he makes a typo.
Request:
curl -X 'PATCH' \
'https://chore-tracker-api.onrender.com/chores/22/assignments/3/status' \
-H 'accept: application/json' \
-H 'access_token: a' \
-H 'Content-Type: application/json' \
-d '{
"status": "comppleted"
}'
Response:
{
Internal Server Error
}
That should be handled.
Test3: Nicolas feel tired today and only wants to do lo low~mid level priority task, he then, decide to use the priority filter to view them.
Request:
curl -X 'POST' \
'https://chore-tracker-api.onrender.com/chores/create_chore' \
-H 'accept: application/json' \
-H 'access_token: a' \
-H 'Content-Type: application/json' \
-d '{
"name": "WATCH ARCANE(solid tv show)",
"location_in_house": "Living Room",
"frequency": "daily",
"duration_mins": "540",
"priority": 2,
"due_date": "2024-11-11"
}'
Response:
{
"message": "Chore WATCH ARCANE(solid tv show) created successully.",
"chore_id": 23
}
Working as excepted.
Metadata
Metadata
Assignees
Labels
No labels