From 0de0a797bc82b96d626faa4de734a713b06d8026 Mon Sep 17 00:00:00 2001 From: ldunivin Date: Mon, 13 Mar 2017 17:32:27 +0000 Subject: [PATCH 1/4] Still in progress. --- person/person.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/person/person.json b/person/person.json index 413ad39..ce23a32 100644 --- a/person/person.json +++ b/person/person.json @@ -95,6 +95,44 @@ } } }, + { + "name": "activity", + "properties": { + "entity": { + "type": "string", + "enum": ["activity"], + "description": "Name of the entity to be queried." + }, + "criteria": { + "type": "object", + "description": "Specific criteria for the activity entity.", + "properties": { + "value": { + "type": "string", + "description": "Classifications of an activity." + }, + "date": { + "type": "object", + "description": "The date of the activity entity.", + "properties": { + "from": { + "type": "string", + "description": "From date of date range for the activity entity. ISO date string." + }, + "to": { + "type": "string", + "description": "To date of date range for the activity entity. ISO date string." + } + } + }, + "exists": { + "type": "boolean", + "description": "'true' to only return profiles that have this entity." + } + } + } + } + }, { "name": "country_code", "properties": { From cc06954dfd50b7915385fa1296ebf1eb3de9867b Mon Sep 17 00:00:00 2001 From: ldunivin Date: Thu, 16 Mar 2017 15:38:51 +0000 Subject: [PATCH 2/4] Update to reflect implemented query handling. --- person/person.json | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/person/person.json b/person/person.json index ce23a32..14adce0 100644 --- a/person/person.json +++ b/person/person.json @@ -107,13 +107,27 @@ "type": "object", "description": "Specific criteria for the activity entity.", "properties": { - "value": { + "network": { "type": "string", - "description": "Classifications of an activity." + "description": "Name of a network." + }, + "updated": { + "type": "object", + "description": "The date of an updated activity entity.", + "properties": { + "from": { + "type": "string", + "description": "From date of date range for the activity entity. ISO date string." + }, + "to": { + "type": "string", + "description": "To date of date range for the activity entity. ISO date string." + } + } }, - "date": { + "used": { "type": "object", - "description": "The date of the activity entity.", + "description": "The date of a used activity entity.", "properties": { "from": { "type": "string", @@ -128,6 +142,11 @@ "exists": { "type": "boolean", "description": "'true' to only return profiles that have this entity." + }, + "filter": { + "type": "string", + "enum": ["LAST","ANY"], + "description": "'LAST' indicates only last updated/used activity, 'ANY' indicates any updated/used activity. Default is 'LAST'." } } } From 602a12a9105d89f21aaef7927dcfaa0e4f2a2a8a Mon Sep 17 00:00:00 2001 From: ldunivin Date: Fri, 17 Mar 2017 11:09:31 +0000 Subject: [PATCH 3/4] Update after discussion with Geoff. --- person/person.json | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/person/person.json b/person/person.json index 14adce0..45705da 100644 --- a/person/person.json +++ b/person/person.json @@ -111,9 +111,9 @@ "type": "string", "description": "Name of a network." }, - "updated": { + "date": { "type": "object", - "description": "The date of an updated activity entity.", + "description": "The date of an activity entity.", "properties": { "from": { "type": "string", @@ -125,19 +125,9 @@ } } }, - "used": { - "type": "object", - "description": "The date of a used activity entity.", - "properties": { - "from": { - "type": "string", - "description": "From date of date range for the activity entity. ISO date string." - }, - "to": { - "type": "string", - "description": "To date of date range for the activity entity. ISO date string." - } - } + "type": { + "type": "string", + "description": "The type of activity to be queried: used/updated. Default is either type." }, "exists": { "type": "boolean", From 5d003feb15b8bc0f7f485bd83f9cea4e52110d46 Mon Sep 17 00:00:00 2001 From: ldunivin Date: Thu, 23 Mar 2017 16:16:03 +0000 Subject: [PATCH 4/4] Change type to enum. --- person/person.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/person/person.json b/person/person.json index 45705da..7db444a 100644 --- a/person/person.json +++ b/person/person.json @@ -127,7 +127,8 @@ }, "type": { "type": "string", - "description": "The type of activity to be queried: used/updated. Default is either type." + "enum": ["used","updated"], + "description": "The type of activity to be queried. If type is not specified, both will be included." }, "exists": { "type": "boolean",