ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 198 - MCD - Level 1 discussion

Report
Export

What should this endpoint return considering the API is build using standard practices?

http://dev.acme.com/api/patients?year=2021

A.
Patient with id 2021
Answers
A.
Patient with id 2021
B.
Patients from year 2021
Answers
B.
Patients from year 2021
C.
No patients
Answers
C.
No patients
D.
All patients
Answers
D.
All patients
Suggested answer: B

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

asked 18/09/2024
Shameez Mohammed
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first