In one of the interview I was asked below question
URI student/1
suppose 1 is Roll number of the student and we get a response like
{ "sname" : "abc", "sBloodGroup" : "o pos", "age" : "30", "some extra fileds" : "xyz", ... ... }
Now task is to create a rest api where user can give multivalue parameter and response should have only required fields as requested.
URL : student/1?fieldName=sname,age { sname : "abc" age : "30" }
how can we design such problem?