9: Building More Features
Activity 16: Getting Cache Data after Updating Recipe Details
Solution
- Get all the recipe data back, click on
RecipeList
and send the request. The result is shown in the following screenshot:Figure 9.15: Get the recipe data back and send the request
- Log in to your account, click on the Collections tab and select the POST Token request. Then, send the request. The result is shown in the following screenshot:
Figure 9.16: Select the POST Token request and send it
- Modify a recipe record using the
PATCH
method. First, select thePATCH Recipe
request. - Now select the Headers tab and modify
Bearer {token}
; the token should be the access token. - Select the Body tab and modify
num_of_servings
to5
, andcook_time
to50
:{ Â Â Â Â "num_of_servings": 5, Â Â Â Â "cook_time": 50 }
- Send the request. The result is shown in the following screenshot:
Figure 9.17: Modifying a recipe record using...