ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 96 - MCD - Level 1 discussion

Report
Export

What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell

A.
Patient with name as John
Answers
A.
Patient with name as John
B.
Patient with surname as bell
Answers
B.
Patient with surname as bell
C.
Patients with either name as John or surname as Bell
Answers
C.
Patients with either name as John or surname as Bell
D.
Patients with name as John and surname as Bell
Answers
D.
Patients with name as John and surname as Bell
Suggested answer: D

Explanation:

Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a '?' Is added followed immediately by a query parameter.

To add multiple parameters, an '&' is added in between each.

Hence coming back to question, endpoint would return Patients with name as John and (and is very important here) surname as Bell

asked 18/09/2024
lagwendon Scott
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first