MuleSoft
MCD-LEVEL-1 · Question #184
What should this endpoint return considering the API is build using standard practices?
The correct answer is B. Patients from year 2021. Correct answer is Patients from year 2021. The thing to note here is that year is not a query parameter and not the uri parameter. Hence it will filter all the patients and return the ones for whom year is 2021
API Design
Question
What should this endpoint return considering the API is build using standard practices?
Options
- APatient with id 2021
- BPatients from year 2021
- CNo patients
- DAll patients
How the community answered
(28 responses)- A4% (1)
- B93% (26)
- D4% (1)
Explanation
Correct answer is Patients from year 2021. The thing to note here is that year is not a query parameter and not the uri parameter. Hence it will filter all the patients and return the ones for whom year is 2021
Topics
#REST API design#URI conventions#resource naming#query parameters
Community Discussion
No community discussion yet for this question.