From 2fa65d2c504386e4cd4033b64ce1529725bc9fc9 Mon Sep 17 00:00:00 2001 From: oof1lab Date: Sun, 12 Nov 2017 11:25:59 +0530 Subject: [PATCH] doc: update --- README.md | 54 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aa01d4687d..5811355276 100644 --- a/README.md +++ b/README.md @@ -108,12 +108,12 @@ Root URL (localhost:3000/) returns all REST API urls for each table in schema. * GET       /api/parentTable/:id/childTable * DELETE  /api/tableName/:id -## Cool features +## HOT features * GET       /api/tableName/groupby * GET       /api/tableName/aggregate * GET       /api/tableName/groups :fire::fire: **[ HOTNESS ALERT ]** -## Only in Prototyping +## Only in Prototyping :snowboarder: :tophat: * POST     /dynamic * GET       /upload * GET       /uploads @@ -360,9 +360,53 @@ Group by multiple columns in one API call using _fields query params - comes rea http://localhost:3000/api/employees/ugroupby?_fields=jobTitle,reportsTo response body -{ - "jobTitle":[{"President":1},{"Sale Manager (EMEA)":1},{"Sales Manager (APAC)":1},{"Sales Manager (NA)":1},{"Sales Rep":17},{"VP Marketing":1},{"VP Sales":1}], - "reportsTo":[{"":1},{"1002":2},{"1056":4},{"1088":3},{"1102":6},{"1143":6},{"1621":1}] +{ + "jobTitle":[ + { + "Sales Rep":17 + }, + { + "President":1 + }, + { + "Sale Manager (EMEA)":1 + }, + { + "Sales Manager (APAC)":1 + }, + { + "Sales Manager (NA)":1 + }, + { + "VP Marketing":1 + }, + { + "VP Sales":1 + } + ], + "reportsTo":[ + { + "":1 + }, + { + "1002":2 + }, + { + "1056":4 + }, + { + "1088":3 + }, + { + "1102":6 + }, + { + "1143":6 + }, + { + "1621":1 + } + ] } ```