mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 18:12:57 +00:00
#631 - Partial Response : Implement video partial response consuming client.
This commit is contained in:
1 parent
44e4b3c803
commit
711f3faf67
2 files changed
+76
-1
No files matched your search
@@ -46,7 +46,7 @@ public class VideoResource {
|
||||
/**
|
||||
* @param id video id
|
||||
* @param fields fields to get information about
|
||||
* @return json of specified fields of particular video by id
|
||||
* @return full response if no fields specified else partial response for given field.
|
||||
*/
|
||||
public String getDetails(Integer id, String... fields) throws Exception {
|
||||
if (fields.length == 0) {
|
||||
|
||||
Reference in new issue
Block a user