Skip to content

Instantly share code, notes, and snippets.

@dandv
Last active August 29, 2015 14:12
Show Gist options
  • Save dandv/8794f5add6bcc0e11359 to your computer and use it in GitHub Desktop.
Save dandv/8794f5add6bcc0e11359 to your computer and use it in GitHub Desktop.
GGRC API response samples
{
"control": {
"company_control": false,
"people": [
{
"context_id": null,
"href": "/api/people/5",
"type": "Person",
"id": 5
}
],
"directive_controls": [
{
"context_id": null,
"href": "/api/directive_controls/81",
"type": "DirectiveControl",
"id": 81
},
{
"context_id": null,
"href": "/api/directive_controls/162",
"type": "DirectiveControl",
"id": 162
},
{
"context_id": null,
"href": "/api/directive_controls/571",
"type": "DirectiveControl",
"id": 571
},
{
"context_id": null,
"href": "/api/directive_controls/613",
"type": "DirectiveControl",
"id": 613
},
{
"context_id": null,
"href": "/api/directive_controls/631",
"type": "DirectiveControl",
"id": 631
},
{
"context_id": null,
"href": "/api/directive_controls/748",
"type": "DirectiveControl",
"id": 748
}
],
"assertations": [
],
"updated_at": "2014-06-20T10:57:11",
"task_group_objects": [
{
"context_id": 4012,
"href": "/api/task_group_objects/324",
"type": "TaskGroupObject",
"id": 324
}
],
"object_controls": [
{
"context_id": 3716,
"href": "/api/object_controls/11235",
"type": "ObjectControl",
"id": 11235
}
],
"implementing_control_controls": [
{
"context_id": null,
"href": "/api/control_controls/14",
"type": "ControlControl",
"id": 14
}
],
"fraud_related": null,
"id": 18,
"control_controls": [
{
"context_id": null,
"href": "/api/control_controls/22",
"type": "ControlControl",
"id": 22
},
{
"context_id": null,
"href": "/api/control_controls/5",
"type": "ControlControl",
"id": 5
},
{
"context_id": null,
"href": "/api/control_controls/14",
"type": "ControlControl",
"id": 14
},
{
"context_id": null,
"href": "/api/control_controls/1",
"type": "ControlControl",
"id": 1
},
{
"context_id": null,
"href": "/api/control_controls/15",
"type": "ControlControl",
"id": 15
},
{
"context_id": null,
"href": "/api/control_controls/17",
"type": "ControlControl",
"id": 17
}
],
"documents": [
],
"modified_by": {
"context_id": null,
"href": "/api/people/6",
"type": "Person",
"id": 6
},
"end_date": null,
"directive": {
"context_id": null,
"href": "/api/policies/8",
"type": "Policy",
"id": 8
},
"title": "Area recon control",
"objective_controls": [
{
"context_id": null,
"href": "/api/objective_controls/68",
"type": "ObjectiveControl",
"id": 68
}
],
"objectives": [
{
"context_id": null,
"href": "/api/objectives/854",
"type": "Objective",
"id": 854
}
],
"workflow_state": "Verified",
"secondary_assessor": null,
"children": [
],
"documentation_description": "",
"version": "",
"object_people": [
{
"context_id": null,
"href": "/api/object_people/1231",
"type": "ObjectPerson",
"id": 1231
}
],
"categorizations": [
],
"type": "Control",
"start_date": null,
"viewLink": "/controls/18",
"status": null,
"description": "It's important to survey the land and identify safe zones that would avoid potential slides.",
"parent": null,
"means": null,
"owners": [
{
"context_id": null,
"href": "/api/people/6",
"type": "Person",
"id": 6
}
],
"object_documents": [
],
"active": null,
"slug": "JCRCON-4",
"categories": [
],
"program_controls": [
{
"context_id": 2089,
"href": "/api/program_controls/1080",
"type": "ProgramControl",
"id": 1080
},
{
"context_id": 3715,
"href": "/api/program_controls/1326",
"type": "ProgramControl",
"id": 1326
},
{
"context_id": 2091,
"href": "/api/program_controls/1429",
"type": "ProgramControl",
"id": 1429
},
{
"context_id": 5715,
"href": "/api/program_controls/1970",
"type": "ProgramControl",
"id": 1970
}
],
"kind": null,
"programs": [
{
"context_id": 2089,
"href": "/api/programs/1883",
"type": "Program",
"id": 1883
},
{
"context_id": 3715,
"href": "/api/programs/2461",
"type": "Program",
"id": 2461
},
{
"context_id": 2091,
"href": "/api/programs/1884",
"type": "Program",
"id": 1884
},
{
"context_id": 5715,
"href": "/api/programs/2935",
"type": "Program",
"id": 2935
}
],
"verify_frequency": null,
"sections": [
{
"context_id": null,
"href": "/api/clauses/836",
"type": "Clause",
"id": 836
},
{
"context_id": null,
"href": "/api/sections/840",
"type": "Section",
"id": 840
},
{
"context_id": null,
"href": "/api/sections/869",
"type": "Section",
"id": 869
},
{
"context_id": null,
"href": "/api/clauses/873",
"type": "Clause",
"id": 873
}
],
"notes": "",
"key_control": null,
"principal_assessor": null,
"reference_url": "",
"object_owners": [
{
"context_id": null,
"href": "/api/object_owners/1",
"type": "ObjectOwner",
"id": 1
}
],
"control_sections": [
{
"context_id": null,
"href": "/api/control_sections/12",
"type": "ControlSection",
"id": 12
},
{
"context_id": null,
"href": "/api/control_sections/13",
"type": "ControlSection",
"id": 13
},
{
"context_id": null,
"href": "/api/control_sections/19",
"type": "ControlSection",
"id": 19
},
{
"context_id": null,
"href": "/api/control_sections/22",
"type": "ControlSection",
"id": 22
}
],
"contact": {
"context_id": null,
"href": "/api/people/3",
"type": "Person",
"id": 3
},
"context": null,
"task_groups": [
{
"context_id": 4012,
"href": "/api/task_groups/110",
"type": "TaskGroup",
"id": 110
}
],
"url": "test",
"created_at": "2013-09-18T08:57:00",
"selfLink": "/api/controls/18",
"assertions": [
]
}
}
/api/programs/2935
{
"program": {
"people": [
{
"context_id": null,
"href": "/api/people/5",
"type": "Person",
"id": 5
}
],
"updated_at": "2015-01-05T21:40:09",
"private": false,
"program_directives": [
{
"context_id": 5715,
"href": "/api/program_directives/5104",
"type": "ProgramDirective",
"id": 5104
},
{
"context_id": 5715,
"href": "/api/program_directives/5100",
"type": "ProgramDirective",
"id": 5100
},
{
"context_id": 5715,
"href": "/api/program_directives/5099",
"type": "ProgramDirective",
"id": 5099
},
{
"context_id": 5715,
"href": "/api/program_directives/5096",
"type": "ProgramDirective",
"id": 5096
},
{
"context_id": 5715,
"href": "/api/program_directives/5097",
"type": "ProgramDirective",
"id": 5097
},
{
"context_id": 5715,
"href": "/api/program_directives/5101",
"type": "ProgramDirective",
"id": 5101
},
{
"context_id": 5715,
"href": "/api/program_directives/5105",
"type": "ProgramDirective",
"id": 5105
},
{
"context_id": 5715,
"href": "/api/program_directives/5098",
"type": "ProgramDirective",
"id": 5098
},
{
"context_id": 5715,
"href": "/api/program_directives/5102",
"type": "ProgramDirective",
"id": 5102
}
],
"task_group_objects": [
{
"context_id": 3889,
"href": "/api/task_group_objects/780",
"type": "TaskGroupObject",
"id": 780
},
{
"context_id": 4900,
"href": "/api/task_group_objects/781",
"type": "TaskGroupObject",
"id": 781
}
],
"audits": [
{
"context_id": 5726,
"href": "/api/audits/1005",
"type": "Audit",
"id": 1005
}
],
"id": 2935,
"description": "Create a different count of each mapped object",
"object_folders": [
],
"documents": [
],
"modified_by": {
"context_id": null,
"href": "/api/people/1",
"type": "Person",
"id": 1
},
"title": "dandv reverse engineer programs API",
"objectives": [
{
"context_id": null,
"href": "/api/objectives/1135",
"type": "Objective",
"id": 1135
}
],
"risk_assessments": [
{
"context_id": 5715,
"href": "/api/risk_assessments/55",
"type": "RiskAssessment",
"id": 55
}
],
"controls": [
{
"context_id": null,
"href": "/api/controls/18",
"type": "Control",
"id": 18
}
],
"object_people": [
{
"context_id": 5715,
"href": "/api/object_people/6367",
"type": "ObjectPerson",
"id": 6367
}
],
"directives": [
{
"context_id": null,
"href": "/api/policies/5938",
"type": "Policy",
"id": 5938
},
{
"context_id": null,
"href": "/api/contracts/5942",
"type": "Contract",
"id": 5942
},
{
"context_id": null,
"href": "/api/contracts/6548",
"type": "Contract",
"id": 6548
},
{
"context_id": null,
"href": "/api/regulations/6607",
"type": "Regulation",
"id": 6607
},
{
"context_id": null,
"href": "/api/regulations/6608",
"type": "Regulation",
"id": 6608
},
{
"context_id": null,
"href": "/api/policies/6620",
"type": "Policy",
"id": 6620
},
{
"context_id": null,
"href": "/api/standards/6933",
"type": "Standard",
"id": 6933
},
{
"context_id": null,
"href": "/api/contracts/6967",
"type": "Contract",
"id": 6967
},
{
"context_id": null,
"href": "/api/policies/6984",
"type": "Policy",
"id": 6984
}
],
"type": "Program",
"start_date": "2015-01-26",
"viewLink": "/programs/2935",
"status": "Final",
"related_sources": [
],
"end_date": "2015-02-26",
"workflow_state": "Assigned",
"owners": [
],
"object_documents": [
],
"object_objectives": [
{
"context_id": 5715,
"href": "/api/object_objectives/8278",
"type": "ObjectObjective",
"id": 8278
}
],
"related_destinations": [
{
"context_id": 5715,
"href": "/api/relationships/89723",
"type": "Relationship",
"id": 89723
},
{
"context_id": 5715,
"href": "/api/relationships/89712",
"type": "Relationship",
"id": 89712
},
{
"context_id": 5715,
"href": "/api/relationships/89715",
"type": "Relationship",
"id": 89715
},
{
"context_id": 5715,
"href": "/api/relationships/89721",
"type": "Relationship",
"id": 89721
},
{
"context_id": 5715,
"href": "/api/relationships/89722",
"type": "Relationship",
"id": 89722
},
{
"context_id": 5715,
"href": "/api/relationships/89714",
"type": "Relationship",
"id": 89714
},
{
"context_id": 5715,
"href": "/api/relationships/89720",
"type": "Relationship",
"id": 89720
},
{
"context_id": 5715,
"href": "/api/relationships/89717",
"type": "Relationship",
"id": 89717
},
{
"context_id": 5715,
"href": "/api/relationships/89718",
"type": "Relationship",
"id": 89718
},
{
"context_id": 5715,
"href": "/api/relationships/89719",
"type": "Relationship",
"id": 89719
},
{
"context_id": 5715,
"href": "/api/relationships/89713",
"type": "Relationship",
"id": 89713
},
{
"context_id": 5715,
"href": "/api/relationships/89716",
"type": "Relationship",
"id": 89716
}
],
"slug": "PROGRAM-DAN",
"program_controls": [
{
"context_id": 5715,
"href": "/api/program_controls/1970",
"type": "ProgramControl",
"id": 1970
}
],
"kind": "Directive",
"url": "http://dandascalescu.com",
"task_groups": [
{
"context_id": 3889,
"href": "/api/task_groups/103",
"type": "TaskGroup",
"id": 103
},
{
"context_id": 4900,
"href": "/api/task_groups/180",
"type": "TaskGroup",
"id": 180
}
],
"notes": "",
"reference_url": "http://webix.com",
"object_owners": [
],
"contact": {
"context_id": null,
"href": "/api/people/1",
"type": "Person",
"id": 1
},
"context": {
"context_id": 5726,
"href": "/api/contexts/5715",
"type": "Context",
"id": 5715
},
"created_at": "2015-01-05T21:40:09",
"selfLink": "/api/programs/2935"
}
}
/api/programs?id__in=2935,2806&__fields=id,title,description
{
"programs_collection": {
"selfLink": "/api/programs?id__in=2935%2C2936&__fields=id%2Ctitle%2Cdescription%2CselfLink%2Cstatus%2Cprivate",
"programs": [
{
"status": "Draft",
"description": "Program to achieve X",
"title": "Program X",
"private": false,
"id": 2936,
"selfLink": "/api/programs/2936"
},
{
"status": "Final",
"description": "This program has a different goal",
"title": "Another program",
"private": false,
"id": 2935,
"selfLink": "/api/programs/2935"
}
]
}
}
{
"programs_collection": {
"selfLink": "/api/programs?id__in=2935,2806",
"programs": [
{
"people": [
],
"updated_at": "2015-01-05T21:40:09",
"private": false,
"program_directives": [
{
"context_id": 5715,
"href": "/api/program_directives/5096",
"type": "ProgramDirective",
"id": 5096
},
{
"context_id": 5715,
"href": "/api/program_directives/5097",
"type": "ProgramDirective",
"id": 5097
},
{
"context_id": 5715,
"href": "/api/program_directives/5098",
"type": "ProgramDirective",
"id": 5098
},
{
"context_id": 5715,
"href": "/api/program_directives/5099",
"type": "ProgramDirective",
"id": 5099
},
{
"context_id": 5715,
"href": "/api/program_directives/5100",
"type": "ProgramDirective",
"id": 5100
},
{
"context_id": 5715,
"href": "/api/program_directives/5101",
"type": "ProgramDirective",
"id": 5101
},
{
"context_id": 5715,
"href": "/api/program_directives/5102",
"type": "ProgramDirective",
"id": 5102
},
{
"context_id": 5715,
"href": "/api/program_directives/5104",
"type": "ProgramDirective",
"id": 5104
},
{
"context_id": 5715,
"href": "/api/program_directives/5105",
"type": "ProgramDirective",
"id": 5105
}
],
"task_group_objects": [
],
"audits": [
],
"id": 2935,
"description": "Create a different count of each mapped object",
"object_folders": [
],
"documents": [
],
"modified_by": {
"context_id": null,
"href": "/api/people/1",
"type": "Person",
"id": 1
},
"title": "dandv reverse engineer programs API",
"objectives": [
{
"context_id": null,
"href": "/api/objectives/1135",
"type": "Objective",
"id": 1135
}
],
"risk_assessments": [
],
"controls": [
{
"context_id": null,
"href": "/api/controls/18",
"type": "Control",
"id": 18
}
],
"object_people": [
],
"directives": [
{
"context_id": null,
"href": "/api/regulations/6607",
"type": "Regulation",
"id": 6607
},
{
"context_id": null,
"href": "/api/regulations/6608",
"type": "Regulation",
"id": 6608
},
{
"context_id": null,
"href": "/api/contracts/6967",
"type": "Contract",
"id": 6967
},
{
"context_id": null,
"href": "/api/contracts/6548",
"type": "Contract",
"id": 6548
},
{
"context_id": null,
"href": "/api/contracts/5942",
"type": "Contract",
"id": 5942
},
{
"context_id": null,
"href": "/api/policies/6620",
"type": "Policy",
"id": 6620
},
{
"context_id": null,
"href": "/api/policies/6984",
"type": "Policy",
"id": 6984
},
{
"context_id": null,
"href": "/api/policies/5938",
"type": "Policy",
"id": 5938
},
{
"context_id": null,
"href": "/api/standards/6933",
"type": "Standard",
"id": 6933
}
],
"type": "Program",
"start_date": "2015-01-26",
"viewLink": "/programs/2935",
"status": "Final",
"related_sources": [
],
"end_date": "2015-02-26",
"workflow_state": null,
"owners": [
],
"object_documents": [
],
"object_objectives": [
{
"context_id": 5715,
"href": "/api/object_objectives/8278",
"type": "ObjectObjective",
"id": 8278
}
],
"related_destinations": [
],
"slug": "PROGRAM-DAN",
"program_controls": [
{
"context_id": 5715,
"href": "/api/program_controls/1970",
"type": "ProgramControl",
"id": 1970
}
],
"kind": "Directive",
"url": "http://dandascalescu.com",
"task_groups": [
],
"notes": "",
"reference_url": "http://webix.com",
"object_owners": [
],
"contact": {
"context_id": null,
"href": "/api/people/1",
"type": "Person",
"id": 1
},
"context": {
"context_id": null,
"href": "/api/contexts/5715",
"type": "Context",
"id": 5715
},
"created_at": "2015-01-05T21:40:09",
"selfLink": "/api/programs/2935"
},
{
"people": [
{
"context_id": null,
"href": "/api/people/1",
"type": "Person",
"id": 1
}
],
"updated_at": "2014-10-02T08:10:26",
"private": false,
"program_directives": [
{
"context_id": 5384,
"href": "/api/program_directives/4820",
"type": "ProgramDirective",
"id": 4820
},
{
"context_id": 5384,
"href": "/api/program_directives/4821",
"type": "ProgramDirective",
"id": 4821
},
{
"context_id": 5384,
"href": "/api/program_directives/4822",
"type": "ProgramDirective",
"id": 4822
}
],
"task_group_objects": [
],
"audits": [
],
"id": 2806,
"description": "",
"object_folders": [
],
"documents": [
],
"modified_by": {
"context_id": null,
"href": "/api/people/2",
"type": "Person",
"id": 2
},
"title": "Program for Auto Mapping from LHN_2014_10_02_01_09_56",
"objectives": [
],
"risk_assessments": [
],
"controls": [
],
"object_people": [
{
"context_id": 5384,
"href": "/api/object_people/5888",
"type": "ObjectPerson",
"id": 5888
}
],
"directives": [
{
"context_id": null,
"href": "/api/regulations/6607",
"type": "Regulation",
"id": 6607
},
{
"context_id": null,
"href": "/api/contracts/6548",
"type": "Contract",
"id": 6548
},
{
"context_id": null,
"href": "/api/policies/6549",
"type": "Policy",
"id": 6549
}
],
"type": "Program",
"start_date": null,
"viewLink": "/programs/2806",
"status": "Draft",
"related_sources": [
],
"end_date": null,
"workflow_state": null,
"owners": [
],
"object_documents": [
],
"object_objectives": [
],
"related_destinations": [
],
"slug": "PROGRAM-2806",
"program_controls": [
],
"kind": "Directive",
"url": "",
"task_groups": [
],
"notes": "",
"reference_url": "",
"object_owners": [
],
"contact": {
"context_id": null,
"href": "/api/people/2",
"type": "Person",
"id": 2
},
"context": {
"context_id": null,
"href": "/api/contexts/5384",
"type": "Context",
"id": 5384
},
"created_at": "2014-10-02T08:10:26",
"selfLink": "/api/programs/2806"
}
]
}
}
{
"relationships_collection": {
"relationships": [
{
"destination": {
"context_id": null,
"href": "/api/vendors/1",
"type": "Vendor",
"id": 1
}
},
{
"destination": {
"context_id": null,
"href": "/api/systems/5",
"type": "System",
"id": 5
}
}
],
"selfLink": "/api/relationships?id__in=89712,89723&__fields=destination"
}
}
{
"results": {
"selfLink": "http://localhost:8080/search?types=Program&q=",
"entries": [
{
"href": "/api/programs/2816",
"type": "Program",
"id": 2816
},
{
"href": "/api/programs/2133",
"type": "Program",
"id": 2133
},
...
{
"href": "/api/programs/2781",
"type": "Program",
"id": 2781
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment