Skip to content

Instantly share code, notes, and snippets.

@zidarsk8
Created November 17, 2016 13:34
Show Gist options
  • Select an option

  • Save zidarsk8/18147d002da732bda9a50873b7a54e14 to your computer and use it in GitHub Desktop.

Select an option

Save zidarsk8/18147d002da732bda9a50873b7a54e14 to your computer and use it in GitHub Desktop.
-------------------- >> begin captured stdout << ---------------------
################################################################################
request data:
[
{
"filters": {
"expression": {
"left": {
"left": {
"left": "child_type",
"op": {
"name": "="
},
"right": "Market"
},
"op": {
"name": "AND"
},
"right": {
"ids": [
9
],
"object_name": "Audit",
"op": {
"name": "relevant"
}
}
},
"op": {
"name": "AND"
},
"right": {
"left": {
"left": "text cad",
"op": {
"name": "="
},
"right": "2016-11-01"
},
"op": {
"name": "OR"
},
"right": {
"left": "date cad",
"op": {
"name": ">"
},
"right": "2016-11-05"
}
}
},
"keys": [],
"order_by": {
"compare": null,
"keys": [],
"order": ""
}
},
"object_name": "Snapshot"
}
]
################################################################################
response data:
[
{
"Snapshot": {
"count": 3,
"total": 3,
"values": [
{
"child_id": 41,
"child_type": "Market",
"context": null,
"created_at": "2016-11-17T13:33:57",
"id": 82,
"modified_by": null,
"parent": {
"context_id": 24,
"href": "/api/audits/9",
"id": 9,
"type": "Audit"
},
"related_destinations": [],
"related_sources": [],
"revision": {
"action": "created",
"content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 41,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-03",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_id": 18,
"display_name": "",
"id": 81,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:56"
},
{
"attributable_id": 41,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-01",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_id": 17,
"display_name": "",
"id": 82,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:56"
}
],
"description": null,
"display_name": "title 94BWUVJ4",
"end_date": null,
"id": 41,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-41",
"start_date": null,
"status": "Draft",
"title": "title 94BWUVJ4",
"updated_at": "2016-11-17T13:33:56",
"url": null
},
"context": null,
"created_at": "2016-11-17T13:33:56",
"description": "title 94BWUVJ4 created",
"destination_id": null,
"destination_type": null,
"id": 371,
"modified_by": {
"context_id": null,
"href": "/api/people/1",
"id": 1,
"type": "Person"
},
"resource_id": 41,
"resource_type": "Market",
"selfLink": "/api/revisions/371",
"source_id": null,
"source_type": null,
"type": "Revision",
"updated_at": "2016-11-17T13:33:56"
},
"revision_content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 41,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-03",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_id": 18,
"display_name": "",
"id": 81,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:56"
},
{
"attributable_id": 41,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-01",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"custom_attribute_id": 17,
"display_name": "",
"id": 82,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:56"
}
],
"description": null,
"display_name": "title 94BWUVJ4",
"end_date": null,
"id": 41,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-41",
"start_date": null,
"status": "Draft",
"title": "title 94BWUVJ4",
"updated_at": "2016-11-17T13:33:56",
"url": null
},
"revision_id": 371,
"selfLink": "/api/snapshots/82",
"type": "Snapshot",
"updated_at": "2016-11-17T13:33:57",
"viewLink": "/snapshots/82"
},
{
"child_id": 44,
"child_type": "Market",
"context": null,
"created_at": "2016-11-17T13:33:57",
"id": 88,
"modified_by": null,
"parent": {
"context_id": 24,
"href": "/api/audits/9",
"id": 9,
"type": "Audit"
},
"related_destinations": [],
"related_sources": [],
"revision": {
"action": "created",
"content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 44,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-06",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 18,
"display_name": "",
"id": 87,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
},
{
"attributable_id": 44,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-04",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 17,
"display_name": "",
"id": 88,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
}
],
"description": null,
"display_name": "title 3KRDE-FJ",
"end_date": null,
"id": 44,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-44",
"start_date": null,
"status": "Draft",
"title": "title 3KRDE-FJ",
"updated_at": "2016-11-17T13:33:57",
"url": null
},
"context": null,
"created_at": "2016-11-17T13:33:57",
"description": "title 3KRDE-FJ created",
"destination_id": null,
"destination_type": null,
"id": 389,
"modified_by": {
"context_id": null,
"href": "/api/people/1",
"id": 1,
"type": "Person"
},
"resource_id": 44,
"resource_type": "Market",
"selfLink": "/api/revisions/389",
"source_id": null,
"source_type": null,
"type": "Revision",
"updated_at": "2016-11-17T13:33:57"
},
"revision_content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 44,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-06",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 18,
"display_name": "",
"id": 87,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
},
{
"attributable_id": 44,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-04",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 17,
"display_name": "",
"id": 88,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
}
],
"description": null,
"display_name": "title 3KRDE-FJ",
"end_date": null,
"id": 44,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-44",
"start_date": null,
"status": "Draft",
"title": "title 3KRDE-FJ",
"updated_at": "2016-11-17T13:33:57",
"url": null
},
"revision_id": 389,
"selfLink": "/api/snapshots/88",
"type": "Snapshot",
"updated_at": "2016-11-17T13:33:57",
"viewLink": "/snapshots/88"
},
{
"child_id": 45,
"child_type": "Market",
"context": null,
"created_at": "2016-11-17T13:33:57",
"id": 90,
"modified_by": null,
"parent": {
"context_id": 24,
"href": "/api/audits/9",
"id": 9,
"type": "Audit"
},
"related_destinations": [],
"related_sources": [],
"revision": {
"action": "created",
"content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 45,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-07",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 18,
"display_name": "",
"id": 89,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
},
{
"attributable_id": 45,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-05",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 17,
"display_name": "",
"id": 90,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
}
],
"description": null,
"display_name": "title -VPAK C.",
"end_date": null,
"id": 45,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-45",
"start_date": null,
"status": "Draft",
"title": "title -VPAK C.",
"updated_at": "2016-11-17T13:33:57",
"url": null
},
"context": null,
"created_at": "2016-11-17T13:33:57",
"description": "title -VPAK C. created",
"destination_id": null,
"destination_type": null,
"id": 395,
"modified_by": {
"context_id": null,
"href": "/api/people/1",
"id": 1,
"type": "Person"
},
"resource_id": 45,
"resource_type": "Market",
"selfLink": "/api/revisions/395",
"source_id": null,
"source_type": null,
"type": "Revision",
"updated_at": "2016-11-17T13:33:57"
},
"revision_content": {
"contact_id": null,
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_definitions": [
{
"attribute_type": "Text",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "text cad",
"helptext": null,
"id": 17,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "text cad",
"updated_at": "2016-11-17T13:33:56"
},
{
"attribute_type": "Date",
"context_id": null,
"created_at": "2016-11-17T13:33:56",
"definition_id": null,
"definition_type": "market",
"display_name": "date cad",
"helptext": null,
"id": 18,
"mandatory": null,
"modified_by_id": null,
"multi_choice_mandatory": null,
"multi_choice_options": null,
"placeholder": null,
"title": "date cad",
"updated_at": "2016-11-17T13:33:56"
}
],
"custom_attributes": [
{
"attributable_id": 45,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-07",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 18,
"display_name": "",
"id": 89,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
},
{
"attributable_id": 45,
"attributable_type": "Market",
"attribute_object_id": null,
"attribute_value": "2016-11-05",
"context_id": null,
"created_at": "2016-11-17T13:33:57",
"custom_attribute_id": 17,
"display_name": "",
"id": 90,
"modified_by_id": null,
"updated_at": "2016-11-17T13:33:57"
}
],
"description": null,
"display_name": "title -VPAK C.",
"end_date": null,
"id": 45,
"modified_by_id": null,
"notes": null,
"os_state": "Modified",
"reference_url": null,
"secondary_contact_id": null,
"slug": "MARKET-45",
"start_date": null,
"status": "Draft",
"title": "title -VPAK C.",
"updated_at": "2016-11-17T13:33:57",
"url": null
},
"revision_id": 395,
"selfLink": "/api/snapshots/90",
"type": "Snapshot",
"updated_at": "2016-11-17T13:33:57",
"viewLink": "/snapshots/90"
}
]
},
"selfLink": null
}
]
--------------------- >> end captured stdout << ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment