Which method should you use?

You need to implement the Get() method in the bookstore Web API application to be able to
find books by using an ad hoc query.
Which method should you use?

You need to implement the Get() method in the bookstore Web API application to be able to
find books by using an ad hoc query.
Which method should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:



Leave a Reply 9

Your email address will not be published. Required fields are marked *


MNN

MNN

It must be B.
D will throw compile error.
A is already implemented in code(Application Structure).
“The RESTful API of the bookstore must expose the following endpoints
Get list of all book and get book by id”.

Between B and C.
“application to be able to find books by using an ad hoc query.”
http://stackoverflow.com/questions/252785/what-is-the-difference-between-iqueryablet-and-ienumerablet/25664959
According to upper article I thing that right answer is B – IQueryble

FigArt

FigArt

D – returns enough to be able to perform adhoc queries on the data. A and B are doing GetById, which is not what the question is asking for, and C returns IEnumerable which can’t be queried

T

T

D
ad hoc query = IQueryble