- Partial Response : Implement Field to json conversion

This commit is contained in:
Gopinath Langote
2017-09-14 22:34:02 +05:30
parent c5b9c63b39
commit 44e4b3c803
5 changed files with 82 additions and 9 deletions
partial-response/src
main
test

@ -48,7 +48,7 @@ public class VideoResource {
* @param fields fields to get information about
* @return json of specified fields of particular video by id
*/
public String getDetails(Integer id, String... fields) {
public String getDetails(Integer id, String... fields) throws Exception {
if (fields.length == 0) {
return videos.get(id).toString();
}