From 010fbb376497f0a605784c28cd7f90bac9778609 Mon Sep 17 00:00:00 2001 From: Paul Balluff Date: Sat, 15 Jun 2024 22:27:45 +0200 Subject: [PATCH] #62 API documentation --- meteor/api/routes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meteor/api/routes.py b/meteor/api/routes.py index 5b16bce..ec02d7d 100644 --- a/meteor/api/routes.py +++ b/meteor/api/routes.py @@ -1404,8 +1404,10 @@ def add_new_entry(dgraph_type: str, data: EditablePredicates, draft: bool = Fals "country": "0x123", "tools": ["0x234", "0x345"], "date_modified": "2023-09-23T18:34:42.652102", # datetime always in isoformat - "audience_size: "2023-09-23", # truncated also ok - "audience_size|unit": "followers" # facets are separated with `|` + "identifier": "@somehandle", + "identifier|kind": "social media" # facets are separated with `|` + "audience_size: ["2023-09-23"], # dates can also be truncated + "audience_size|unit": {"0": "followers"} # facets for list types } } ```