Skip to content

Yusup R.#15

Open
Yusuprozimemet wants to merge 2 commits intoHackYourAssignment:mainfrom
Yusuprozimemet:main
Open

Yusup R.#15
Yusuprozimemet wants to merge 2 commits intoHackYourAssignment:mainfrom
Yusuprozimemet:main

Conversation

@Yusuprozimemet
Copy link

No description provided.

@github-actions
Copy link

📝 HackYourFuture auto grade

Assignment Score: 100 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 50
🧪 The auto grade is experimental and still being improved

Test Details
Vitest unit test results:

✅ post.sh: Script exists
✅ post.sh: Create user John Doe
✅ patch.sh: Script exists
✅ patch.sh: Correct the email address
✅ get.sh: Script exists
✅ get.sh: Retrieve user John Doe details
✅ delete.sh: Script exists
✅ delete.sh: Delete user John Doe
✅ get.sh: Verify user John Doe has been deleted
✅ Uses the correct base URL
✅ URL includes the nobelPrizeYear query parameter
✅ URL includes the nobelPrizeCategory query parameter
✅ URL includes the offset query parameter
✅ URL includes the limit query parameter
✅ Omits the nobelPrizeYear when set to "all"
✅ Omits the nobelPrizeCategory when set to "all"
✅ Includes the sort query parameter set to desc

Total passed: 17
Total failed: 0
Killed

@durw4rd durw4rd self-assigned this Mar 17, 2026
Copy link

@durw4rd durw4rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works because curl uses GET by default. However, I'd consider adding -X GET to make the method explicit and consistent with your other bash scripts.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I believe the users.json file was supposed to remain in the same state as at the beginning of the project. It's not the focus of the exercise, and it's not an issue either, but it's good to be cautious when committing changes to 'database' files like this one.

offset: filters.offset || 0,
limit: filters.limit || 10,
sort: 'desc'
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good use of the URLSearchParams object constructor for the fixed params 👍

@durw4rd durw4rd added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants