You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapters/exercise-calling-data.qmd
+67-2Lines changed: 67 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ Because the first question is about searching within a specific scope, let's sta
24
24
| Parameter | Format | Notes |
25
25
|-----------|--------|-------|
26
26
|`q`| Search term e.g. sunflowers | Returns a listing of all Object IDs for objects that contain the search query within the object’s data |
27
-
|`departmentId`| Integer | Returns objects that are a part of a specific department. For a list of departments and department IDs, refer to our /department endpoint: https://collectionapi.metmuseum.org/public/collection/v1/departments|
27
+
|`departmentId`| Integer | Returns objects that are a part of a specific department. For a list of departments and department IDs, refer to our <spanstyle="background-color: #fff3cd;">**/department endpoint**: https://collectionapi.metmuseum.org/public/collection/v1/departments </span>|
28
28
29
29
As you can see, documentation is the best starting point to interact with an API. With that information, we have answered not only the first question, but also what endpoint, parameters, and previous information we need to retrieve before doing the query.
30
30
31
-
Before proceeding with the next question, let's get the list of departments and their IDs to select the one corresponding to the 'Medieval Art' department. To do that, just paste the '/department' endpoint as is pointed out in the documentation.
31
+
Before proceeding with the next question, let's get the list of departments and their IDs to select the one corresponding to the 'Medieval Art' department. To do that, just paste the '/department' endpoint as is pointed out in the documentation (if you get lost, follow the hints ;) ).
0 commit comments