What you will learn
Continue the saved-customer workflow from create/read-back. This lesson uses its own workspace, so obtain fresh tokens and IDs. A mutation response and a later read are separate pieces of evidence.
Your goals
- Build a request from the rule rather than copying an answer.
- Keep observed evidence separate from the expected result.
Before you start
Read the previous lesson first if you have not already. This course does not require programming.
Practice setup
Click Create workspace. Then log in as the fictional customer named in the steps. Use that practice token, not your CodeKru sign-in. Reset starts this lesson’s data over and invalidates its tokens.
Follow these steps
- Create this lesson’s workspace, log in as A, and create the supplied customer. Select its response and copy its id.
- Replace that customer with PUT using a name and email only. Select the response. Read the exact id back and select it. Inspect age and city that were omitted.
- PATCH the same id with a new name only. Select it and then select a later GET. Compare every other field against your selected replacement read.
- Answer from your final read and submit. Keep the record until stored-state grading finishes.
Investigate before concluding
First record the actual result for each case. Compare the body, headers and later state with the stated contract. Keep an observation separate from a prediction; use the model answer only after making your own attempt.
What to keep as evidence
- Each selected response belongs to its named case.
- Conclusions follow the request and response evidence.
- Another learner can repeat the work using the stated setup.
References for this lesson
Finish this assignment
Answer from the transcript on this page. Click Submit Answers. Your score is the percentage of checks that passed. A saved 100/100 means every check passed. Continue opens the next lesson you can submit.
If something goes wrong
- Change one part of the request at a time.
- A 401 means the practice login token is missing or expired. Log in again in this workspace.
- A 409 on create means that fictional email is already used. Choose another email.
Self-review and independent variation
- Each selected response belongs to its named case.
- Conclusions follow the request and response evidence.
- Another learner can repeat the work using the stated setup.
PATCH only age to a valid boundary and verify city is retained.
Automatic checks verify the requests and answers configured for this lesson. The self-review is for your own reasoning. A score is not a certificate.