Clarify JSON body structure for PATCH requests#188
Merged
Conversation
Updated the JSON body requirements for PATCH requests in the assignment instructions.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Lesson 07 assignment instructions to clarify what students should include in the JSON request body when making PATCH requests to the /api/tasks/:id endpoint.
Changes:
- Removed
createdAtfrom the required JSON body for thecompleteTodoPATCH request. - Updated the
updateTodoPATCH body description to specify which fields should be sent. - Fixed blockquote indentation so the final AirHub
[!NOTE]callout renders correctly.
| - **Optimistically apply** the edited todo to state | ||
| - Make a PATCH request to `/api/tasks/${editedTodo.id}` with: | ||
| - JSON body containing title, isCompleted, and createdAt | ||
| - JSON body containing `title` and `isCompleted` with associated values |
|
|
||
| > [!NOTE] | ||
| > The AI review tool (known as AirHub) can check code and structure, but it does not run your code in a server environment to verify that aspect runs properly. We will have human reviewers checking this aspect, so you may receive a passing assignment from AirHub that could still need revisions after a human has checked that your work runs properly in the correct environment. If your AI and human reviewer feedbacks don't match, trust the human review. No newline at end of file | ||
| > The AI review tool (known as AirHub) can check code and structure, but it does not run your code in a server environment to verify that aspect runs properly. We will have human reviewers checking this aspect, so you may receive a passing assignment from AirHub that could still need revisions after a human has checked that your work runs properly in the correct environment. If your AI and human reviewer feedbacks don't match, trust the human review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated the JSON body requirements for PATCH requests in the assignment instructions.
Brief Summary of Proposed Changes
Rationale for Proposed Changes
Link to any Related Issues
Confirm