Open clapforyouth opened 9 years ago
I don't know what you mean, please describe the task better if it's going to assign to others.
Using the params like: ?field=name,email,limit(5),group{name,limit(2)}
You mean Facebook's Graph API (https://developers.facebook.com/docs/graph-api/using-graph-api/v2.4)? Your examples seem a little bit different from theirs, but IMO it's a good idea to do filtering in this way.
I suggest to add some output filter for the output fields.
Suppose GET /users output will be { "parameter1": "value1", "parameter2": "value2", "parameter3": "value3", "parameter4": "value4", "group": [ ... ... ] }
What I want is to filter the output like:
{ "parameter1": "value1", "parameter4": "value4", "group": [// only 2 groups data ] }
Just like Facebook's Graph API: ?field=paramete1,parameter2,limit(5),group{name,limit(2)}
Any suggestions?